aw52741's Q&A profile
Visual C++ Optimization problem
Our application crashes during execution a floating point instruction. It seems to be an incorrect optimization. When the method 'CLPController::StopPlaying' is called from the 'CLPController::SetLogTime', a floating point value is remaining on the top of the FPU stack: 00AC4575 call CLPController::StopPlaying (0AC3090h) 00AC457A fstp qword ptr [esi+24h] 'CLPController::StopPlaying' indirectly calls the ::MoveWindowW function which sometimes empties the FPU stack. It causes a crash at a next FPU instruction (in the another place) because the ' ...Show All
Visual C++ Weird behaviour of "Textout" ...
Gentle people, This drives me nuts! Please consider the following pieces of code: InitInstance: szBkwMsg = "Message1"; <----- ShowWindow( hWnd, nCmdShow ); UpdateWindow( hWnd ); SendMessage( hWnd, WM_COMMAND, IDM_BKW , 0 ); WndProc: case IDM_BKW: while (szInDs == "") { if (DialogBox(hInst, .... <----- { } } szBkwMsg = "Message2"; <----- UpdateWindow( hWnd ); DialogBox(hInst, ... <----- case WM_PAINT: hdc = BeginPaint (hWnd, &ps); TextOut(hdc, iTextx, iTexty, szBkwMsg, strlen(szBkwMsg)); EndPaint( hWnd, &ps ); return 0 Simple and straight forward I thought, but what happens is: - " ...Show All
Windows Forms data transfere from one form to another
Hi I want to open a dialog box form from current form, to fill some values in text box, transfere it back to current form and close the dialog box. Everything warks except data transfering. How can I take a value of text box in one form and put it in text box of another form Hi, try this in Form1: public TextBox myTextBox { get {return _mytextBox;} set {_myTextBox = value; } Form2 = new Form2 (this) in Form2: Form f1; //konstruktor public Form2(Form anotherForm) { f1tb = anotherForm; } private void youMethod() { f1tb.myTextBox.Tex ...Show All
Software Development for Windows Vista web service - response/fault
I got a workflow that is activated by a WebServiceInput, calls some other WebServices during it's runtime and responds with a WebServiceOutput to the original caller - I guess a most common scenario for these kind of web services. But how do I handle errors in here The web services invoked can under circumstances return a SOAP exception containing a detailed error description. I do not want to handle these exceptions in my workflow, but just forward it to the original caller of the workflow. So I thought I just put in an exception handler for SOAP exceptions (or exceptions in general) and send that exception with WebServiceFault back to t ...Show All
Visual Basic Why do the ODBC 3.5.1 and MySQL 3.1.8 drivers not work?
Why do the ODBC 3.5.1 and MySQL 3.1.8 drivers not work Michael Seriously I read a few of your post, atfirst I can understand that you are pissed off. But then when I read a couple more, I totally think you should go do something else. I have the same problem with MySQL but I know its a B E T A, and people answering this thread is just like YOU and ME. Its not like every reply is OFFICIAL MICROSOFT SUPPORT. So STFU. Dont act like a kid that doesnt get candy. You made me register to post this................ ...Show All
SQL Server Microsoft decision tree
Hi again ....i'm trying to understand the works of microsoft decision tree algorithm I have an example case below : Customer Id Debt Level Income Level Employment Type Credit Risk 1 High High Self-Employed Bad 2 High High Salaried Bad 3 High Low Salaried Bad 4 Low Low Salaried Good 5 Low Low Self-Emplyed Bad 6 Low High Self-Employed Good 7 Low High Salaried Good ...Show All
Windows Forms Struggling with no touch deployment
I have copied my exe file onto the virtual folder and set the exe up as a trusted exe file on the client machine. This works fine until I recompile and copy the new exe. When I do this I get the usual permissions problems. Whats happening I thought no touch deployment would handle this easily. I have now compiled my application as a class file (dll) and I have placed that in the virtual folder and have created a 'stub' app which invokes the application. This seems to work OK until I attempt to extract my connection string from an application variable held in the config file and it blows up. Null referenc ...Show All
Visual Studio Team System Clarification of FxCop Documentation needed
Having run FxCop (Standalone edition) against code that was written with VS2005, it has come up with a couple of instances of the following rule: AvoidUninstantiatedInternalClasses. I have read the documentation for FxCop for this rule and the thread below but I am still not clear on what is ment when the documentation indicates that adding The static modifier (for types targeting .NET Framework version 2.0) should be done. The class in our code has no designer generated code, or constructor and all the methods within the class start with the public static void signature type. With the documentation in mind I believe the code ...Show All
SQL Server AttachDbFilename, |DataDirectory| and SQL Server 2005 June CTP Relative Paths
Hello, I am using "AttachDbFilename" to connect to a June CTP SQLExpress database. I have a windows forms application that has the following connection string (which works fine at the moment): "Data Source=.\SQLEXPRESS;AttachDbFilename='|DataDirectory|test.mdf';Integrated Security=True;User Instance=True" However, I would like to make my connection string: "Data Source=.\SQLEXPRESS;AttachDbFilename='|DataDirectory|..\..\Database\test.mdf';Integrated Security=True;User Instance=True" But no matter what combination I try (including not using DataDirectory at all), I cannot seem to open the ...Show All
Visual Basic checkbox problem
Can anyone help me find information on how to handle check boxes and groupboxes I'm new to visual basic. Any suggestions are much appreciated. Thanks a lot in advance Alex What part do you want to know Checkboxes have a property to tell you if they are checked, and fire an event when they change. If you google with site:msdn.microsoft.com, you can search the microsoft docs for more info. ...Show All
Windows Forms StatusStrip in VS2005 CTP Item Docking
Hi, Maybe I'm missing something but is there a way to dock a status strip item to the right hand side of the status strip In particular, I added a toolStripProgressBar to the StatusStrip but there does not seem to be a property that will move the bar to the right hand side of the strip. Thanks for your input. Add a ToolStripStatusLabel and a ToolStripProgressBar to your StatusStrip. Set the ToolStripStatusLabel.Spring = true. This will scoot the ToolStripProgressBar to the right. You can set the text of the ToolStripStatusLabel to be blank. In other *strip controls, you can use the Ali ...Show All
Visual C# Windows Media Player
Ok. I have a windows media player control on my form. I need to know how to make it play a wav file that is on my desktop. Can someone help me please. Not sure why it would play automatically, but this is how I disabled that: windowsMediaPlayer.settings.autoStart = false ; ...Show All
Visual Studio Express Editions Error code 2908
My VB Express 2.0 Beta installation crashed, so I tried to reinstall. I have followed all the steps regarding uninstalling, run the cleanup wizerd, even followed the step-by-step instructions to clean up the registry. When I try to reinstall though, after the download is finished, I get an error code 2908, which the website tells me is "Unable to register component", so I guess there's something else in the registry. Any ideas for a workround Error code 2908 means the same thing as error code 1935. This error indicates that there was an error installing one or more assemblies to the GAC during setup. Do you know which of th ...Show All
SQL Server Doubt in Select query
hai.. am havinf a table like.. tblMonths mon years Jan 2000 Feb 2003 Mar 2004 May 2005 No i want a query to give o/p as... jan feb mar may 2000 2003 2004 2005 Please help me... Regards, Satheesh You can use below query in SQL Server 70/2000. select min(case t.mon when 'Jan' then t.years end) as jan , min(case t.mon when 'Feb' then t.years end) as feb ... from tbl as t -- add group by if necessary. This query will produce one row In SQL Server 2005, you can use th ...Show All
Windows Forms persisting user session information in a form?
I'm used to using sessions in asp.net, but now the program I have to write needs to store a few values when someone logs in to use the program. What is the windows forms version of a session variable Or am I left with just storing the info in hidden label controls or something Thanks. there's another approach that ...Show All
