Lars E.Nes's Q&A profile
Visual Studio Express Editions add video to resources
Hi can anyone tell me if its possible to add a wma video file to resources in vb express as it only has in the add resources section......strings...audio...images...icons...files...other... not sure where to put it and how to access it...... any help please cheyenne Yes it is very possible to add a wma video file to resources...add it as a file resource. Edit: Sorry SJ, post latency ...Show All
SQL Server Unexpected results of stored procedure
hi, hvae a little trouble with thos procedure. When executed it always adds 2 to the value of fields Telefon and Mobil. Can anyone help me, please Kurt ALTER Procedure opdaterbruger ( @Initialer nvarchar(100), @Mailadr nvarchar(100), @Telefon float(8), @PlusNet float(8), @Mobil float(8), @pnmobil float(8) ) AS UPDATE Brugere SET Mailadresse = @Mailadr WHERE Initialer = @Initialer IF (@Initialer= '0') OR NOT EXISTS ( SELECT * FROM PNetlokal WHERE Bruger = @Initialer) INSERT INTO pnetlokal ( Bruger, Kortnr, Telnr ) VALUES ( @initialer, @Plusnet, @Telefon) ELSE UPDATE PNetLokal SET TelNr = @Telefon, KortNr = @PlusNet WHERE Bruger = @Initialer IF (@Initialer= '0') O ...Show All
Architecture Synchronizing Legacy DB and Application DB
Hi All, We are developing a solution which requires consulting some information on legacy systems. There is also a requirement to keep the system available even if the legacy systems are out. We are thinking about replicating the information on our application DB as a contingency (it is acceptable if the data we have to use does not change often). My questions are: Have anyone used a different solution for a simmilar requirement If not, what would be the best way to do this 1) Implement a windows service that update our DB copy from time to time (the problem here is that our application is running on a cluster, so we need to control the concurrency between the services running on each cluster machine) 2) Use som ...Show All
Visual Studio Express Editions Registering Express probs
I have installed both VB express and Web Developer Express today. When i go to the help -- Register product the window telling me to click the link to register comes up. I click on the link, IE6 launches great but no Page comes up. There is no URL either in the address box. This is the same for both products. I got into registering the web express by a URL that someone had on this site, but the key i got didn't work. Can anyone help please. Geoff Well i found the problem. I think this may work for a few of you with URL problems. I changed my default browser to FireFox and tried again the register process, low and behold it all worked, i logged in with my passport and go ...Show All
.NET Development Seperating Data stuff from C++ apps
Hi, This is probably for most of you a very basic question. My goal is to define in a seperate instance from application all infos related to DataSets and DataAdapters that are needed when connecting to a specific database. Why First, I would like to be able to have in a single instance everything needed when hooking to a SQL Server Express database and in an other everything needed when hooking to a SQL Server CE database. Then, from application, I would like to be able following a few basic configuration steps to choose from one or the other, or even both in specific cases. Second, I want to be able to seperate Database related stuff from application so that I ca ...Show All
Visual Studio 2008 (Pre-release) Custom Username and password for authentication
Hi I'm trying to have a service authenticate over the internet (HTTP or HTTPS) to a custom username and password list. I understand that I can use a MembershipProvider and link that in using the WCF config file. My question is what kind of transport do I need to use (basicHttpBinding or wsHttpBinding) and what kind of security do I need to define on the client and the server (Transport Security Message Security ) Also, on a related but further note, I need to be able to see which logged in user is calling the service so I can get their account details etc. Is this found somewhere in the OperationContext object Hope that's enough detail for what I'm trying to achieve! In my security samples here: http://w ...Show All
SQL Server Changing default directory for stored procedures
I want to change the default directory for my stored procedures. It is extremely inconvenient for me that they are placed in \documents and settings\... I cannot find a place in the Tools where I can change it. Thanks. Thank you Andrea. Then what can I do about this, I would say, serious problem I make a modification in my stored procedure, and try to save it. The only options I am given is to save a " Query1 " (it may be Query23 " or something) or " save as ." Let's say I save d it. Then I close the SQLEXPRESS and open it up again. Go to my stored procedure and cannot find my changes. Now it does not seem to happen every time but so annoyingly often that I cannot see any pattern to change my b ...Show All
SQL Server Report Manager Error
I have seen this issue in other posts, but I've never seen a way to fix it. When I try to access the Report Manager, I get the following: Server Error in '/Reports' Application. The DLL is there, for some reason it doesn't seem to be looking in the reportserver folder... I tried to uninstall .NET 2.0 but it says it won't do it because it will disable applications (duh) I might HAVE to thrash the server because I have to have this running in the next two weeks! I'll keep noodling with it... if you think of anything else, let me know.. ...Show All
Visual J# How to close a blocking DatagramSocket?
Hi; I have a DatagramSocket that is waiting on a receive: DatagramPacket pkt = new DatagramPacket(new byte[100], 100); mySocket.receive(pkt); I need to close the socket when my application is ending (it is in a worker thread). I presently call mySocket.close() and that works but I get: net.windward.xmlreport.b: [formatter] ac.server WARN net.windward.xmlreport.b - direct java.net.SocketException: A blocking operation was interrupted by a call to WSACancelBlockingCall net.windward.xmlreport.b: [parser] ac.server WARN net.windward.xmlreport.b - multi java.net.SocketException: A blocking operation was interrupted by a call to WSACancelBlockingCall The thread 0x9d8 has exited with code 0 (0x0). net.windward.xmlreport.b: [p ...Show All
Visual Studio 2008 (Pre-release) export to image with black block
My code is: RenderTargetBitmap rtb = new RenderTargetBitmap((int)canvas1.Width, (int)canvas1.Height, 96d, 96d, PixelFormats.Pbgra32); rtb.Render(sp); BmpBitmapEncoder encoder = new BmpBitmapEncoder(); encoder.Frames.Add(BitmapFrame.Create(rtb)); FileStream file = new FileStream(Environment.CurrentDirectory + "\\temp.bmp", FileMode.Create); encoder.Save(file); it run without exception,but the image ' blank area was fill with black block,why Interesting. It looks rather like the Visual is being drawn at not quite the same location as your RenderTargetBitmap. Here's your code from your post where you create a RenderTargetBitmap from your Element: RenderTargetBitmap rtb = new RenderTa ...Show All
SQL Server Serious error in RS licensing docs on MS web site
Correct me if I'm wrong... There is a potentially costly error in at least 2 Reporting Services 2005 licensing docs on Microsoft’s web site. They fixed the docs a few months ago after I called and told them about it but, now they are bad again! Here are links to the bogus docs: http://www.microsoft.com/sql/howtobuy/howtolicensers.mspx http://www.microsoft.com/sql/howtobuy/sqlserverlicensing.mspx Both of these docs say that you need 2 SQL licenses to run Reporting Services 2005 on a separate server from the SQL engine. This is not true. You only need 1 license! You do of course need the correct number of CAL's or a CPU license. The license.txt file that ships on the SQL Server 2005 standard edition ins ...Show All
Visual FoxPro Hiding deleted items on grid
Hello What I want to do is to hide deleted items in a grid in real time. I have a grid bound to a PRODUCT table. The grid displays all the products I have. I have SET DELETED ON in the Form's Load event In the grid's INIT event I have SET FILTER TO NOT DELETED() and in the DELETE event I have Thisform.grid.Refresh, to refresh the grid every time I delete an item. In a button called "DELETE PRODUCT" I have the following code DELETE So, when I choose a item in the grid, I click the DELETE PRODUCT button and the grid behaves a little weird, 1- The last record in the grid gets deleted not the one I chose. 2- The grid gets refreshed only when I click in another Item inside the grid. I have tried other ap ...Show All
Windows Forms Webbrowser Zooming
Hi folks, I am using the webbrowser control in my form to preview a website. This works fine but only in 1:1 width and height. Now i want to scale the output of the webbrowser control, so that i can see the whole website in a rect of 100 x 200 pixels for instance. Could you tell me the right property or method First I tried to work with the Scale function but it seems to be deprecated, isn't it Thank you and best wishes from Germany! This is the output of my debugger: warning BC40000: Public Sub Scale(ratio As Single) ist veraltet: This method has been deprecated. Use the Scale(SizeF ratio) method instead. http://go.microsoft.com/fwlink/ linkid=14202 . could you give me a hint how ...Show All
.NET Development how to check dial tone is there or not
Hello Everybody, I have some modems connected to my pc i want to dial from the modem, but before dialing i want to check wheather the dial tone is present or not. Is there any api which could tell me about this Thank you in advance. Sarguna Hello, See this post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=905868&SiteID=1 You can also get responses from Modem like, Line Busy, No Dial Tone etc... Please see that post and write back if you need more help. Best Regards, Rizwan ...Show All
SQL Server Output Buffer Remove Row?
I am using a script component to create the output buffer dynamically. I use the Outputbuffer.AddRow() call. I then set all the fields I want, and its added to the output and later inserted into the database. If a field value fails it causes an error, but the record is partially inserted upto the point where the set field command caused the error. So if I set 10 fields, and it fails on field 5 it inserts data for the 5 fields that worked and nulls into the others. As a result I have a try catch clause, and if it fails I want to cancell the addition of the new row. Is there a command like RemoveRow(), rollback, etc that can be used to not insert the record in error Sample code.. Try PaymentOutputBuffer.AddRow() PaymentOutp ...Show All
