Ilanth's Q&A profile
Visual C++ MemoryStream
This does not work: MyStream is a MemoryStream InsertString = String::Format ("insert into blobtest (blobtest) values ('{0}');", MyStream->GetBuffer()); MyStream->GetBuffer() just returns "System.Byte[]", not the actual data, which is what I want. You can see what I'm trying to accomplish here. Why isn't it working Before I answer this question, I'd like to know how you obtained MemoryStream (did you make it from a file Which file Did the user type it in ) What is the column type for blobtest ...Show All
SQL Server again a problem with xml datasource extension
it seems to be that the xml datasource ignore empty fields. why example: < xml version="1.0" standalone="yes" > <Head> <ID>121234</ID> <Title>Hi</Title> <Text></Text> <Amount>3443.90</Amount> </Head> Only ID, Title and Amount appearing in the resultset. any suggestions See this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=376677&SiteID=1 -- Robert ...Show All
SQL Server Broker:Corrupted message
Hello, Has anyone seen this in profiler I have two brokers on different servers with one of them being the initiator. All messages end up sitting in the initiator's transmission queue. Profiler on the target broker's machine displays this for every attempt to send by the initiator: A corrupt message has been received. The End of Conversation and Error flags may not be set in the first sequenced message. This occorred in the message with Conversation ID '...', Initiator: 1, and Message sequence number: 0 In case it's relevant encryption is disabled and endpoints on both servers use windows authentication. Any hints are greatly app ...Show All
Visual Studio Report TextBox localization
Hi, I would like to know if it is possible to localize textbox in a report I know it is easy in a windows form (just set the Localizable property of the form to true and switch language property to change each control text) but have not found something similar in a report... Thank you! ...Show All
Visual Studio Express Editions Trouble installing Visual C++ Express using .iso image
When I tried to install Visual C++ Express from a CD burned from a downloaded .iso image I got the following error: The Cabinet file 'vcsetup1.cab' ... is corrupt and cannot be used ... I downloaded the .img image, extracted files using IsoBuster, and installed without problems. I redownloaded the .iso image (I'd like to burn a CD and my current burning software only supports .iso, not .img, so I'd really like to get a good .iso image). This time I extracted files from the .iso image using IsoBuster. When I try the install from there, I get the same error. I did a windiff on the directories extracted from the .img and .iso images. Differen ...Show All
Visual C# .GetBounds() error
Hey folks, I'm not sure if this is the correct forum to post this, so feel free to move the posting a more appropriate place if you deem it necessary. :) First of all let me state, that I'm very new to C# programming. As a matter of fact, I have only ever had one programming class (C++) in college, which was an elective. ;) Anyways, here is the problem I have. I have two images and I want to check if they collide at some point using the .GetBounds() and .IntersectsWith methods. Here is what I wrote so far: ---------------------------------------------------- Image ball = Image.FromFile("ball.gif"); Image ba ...Show All
Windows Forms Great article, but a question to David Guyer
Read this rticle on sql express and Click once it should be an anouncement i believe http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnsse/html/EmSQLExCustApp.asp I believe you did not write that article but maybe you can answer this question: assume that on version 1.0.1 i publish the application and the user install it and create the db as in the article. Then i publish a version 1.0.2 with db changes, but the user does not open the application in this time interval so he does not receives the new updates Then i publish version 1.0.3 which also has db changes and then a user open the application, and gets on ...Show All
SQL Server SQL 2005 Server DDL Trigger Errors
Greetings! I've been working on a SQL 2005 project, and have really been excited about the new DDL triggers. I managed to implement some database-level DDL triggers successfully. However, I keep getting an error when I try to create a server-level DDL trigger. For several of the event groups, I keep getting the following error: Msg 1082, Level 15, State 1, Procedure tr_Server_Audit_Security, Line 44 "DROP_SERVER_ROLE_MEMBER" does not support synchronous trigger registration. I can't figure this one out for the life of me. Here's a sample of the trigger I'm trying to create (BTW, this code works for database triggers, with some slight ...Show All
Visual Basic Launch and control a command line program from VB form
I can launch a command line program such as cmd.exe from a VB form using: Shell( "cmd.EXE" , AppWinStyle.NormalFocus) How do I write data to the program as if I were typing at the keyboard How do I capture the response of the program so I can parse it I assume I have to redirect its IO streams. Can't figure out how. I'm not sure if it will do all you need but have a look at the ProcessStartInfo class for starters. Dave ...Show All
Smart Device Development Hiding Menubar
Hello I have an PPC 2003 App (.net 2.0 VS2005Beta2) which normaly doesn't use the menubar. I'd like to hide it. It worked till now I added another Dlg window where I enter some information because of this I need the SIP and because of this I have a menubar (but I only need it in this special Dlg). But now I have the menubar also in the MAIN Window!! I'm still having a similar problem with fullscreen Applications. I posted it here Fullscreen App but I didn't get it working :-( so can somebody help me regards Norbert I've seen a similar effect when trying to keep a form fullscreen, and then displaying another form. Had to c ...Show All
.NET Development About Singleton and queed requests
Hi, I have one query regarding performance. I have an remoting application which is using IIS as host. I am using the singleton objects. What i want to ask is, if I send say some 10 request for the same object (e.g starting the same screen by some 10 users at same time), thus my 10 requests will get queued or it will be served at same time If it is getting queued, what is the best solution to sort out the issue This is causing the great performance hit. Can anybody suggest. thanks Vyankatesh Hi, When remoted in IIS, the requests are taken care by ASP.NET which maintains a ThreadPool to handle the requests. I ...Show All
Software Development for Windows Vista Please, Help!
I am about to loose the ability to Windows WorkFlow because a simple problem I cannot seem to figure out and knowbody can seem to answer. Its simple, how do I get the service objects right after a workflow is coming back from being persisted mardo Have you tried the WorkflowLoaded event Add the following where you create the workflow runtime: workflowRuntime.WorkflowLoaded += new EventHandler < WorkflowEventArgs >(workflowRuntime_WorkflowLoaded); Below is an example of how to get the Sql persistence service in the handler: static void workflowRuntime_WorkflowLoaded( object sender, WorkflowEventArgs e ...Show All
Visual FoxPro Blinking Vertical Line hard to see in a textbox
I have converted a Clipper application to VFP 8.0 and all interface occurs in the main window (_SCREEN) of Foxpro. The following command is used for data entry: @ 21, 15 say "Enter new Order Number " get cNewNum read The data entry shape that is blinking in the textbox is very difficult to see. It is a very narrow vertical line and therefore is hard to pick up. Is there any way to change the shape from a vertical line to a block shape or anything else (the color) that would be easier to see Thank you for all of your responses. I was able to work around t ...Show All
Windows Forms Moving controls doesn't work after migrating to VS2005
Hello, I am experiencing strange problem with move controls in VS 2005 Designer. I have a 2003 project which uses .NET 1.1 designer functionality: DocumentDesigner derived form designer, ControlDesigner derived control designers and custom implemented services. The solution worked perfectly when compiled in VS 2003. As I converted it to VS 2005 I had no problems compiling, and dialog editor works in most parts (including some more esoteric features, such as custom drawn connectors between controls on a surface). However, a couple of standard features don’t function anymore, most notably drag and drop moving of controls ...Show All
SQL Server stored procedure
Hi I want to create a stored procedure. I have 2 tables called orders and orderdetail.Now i want to move orders from these tables in to new tables called orders2 and orderdetail2.Perticularly those orders which r there more than 60 day(means those orders which r 60 day old ,,to new tables) and removing them from older tables(first tables) that is orders and orderdetails. and wants to delete those records from old tables.and i can move(copy to new table and delete from old table) only those records whose transactionstatus(field in tables for checking the status of payment whether done or still on hold and id transaction status is "appr ...Show All
