Anyone know what causes this error? "Please tell Microsoft about this problem"{
Tombo
Posts
-
Microsoft Error Message -
MS Server 2003 SP1I had a similar problem. I found I had to use the new "sockets" libs and API.(WINSOCK2)
-
Visual C++ and C programmingI think this is what you want to do? { FILE *flog; i = 10 ; j = 20 ; k = i+j ; flog = fopen("c:\\directory\\test.txt", "w"); fprintf( flog,"%s, %d\n","k=",k ); fclose ( flog ); } If you look in the directory called "directory" you should find your file (test.txt).
-
Repositioning a cursor in a controlThe GetLength()is on the variable I set up for the text. However you solve my problem! I changed the SendMessage (EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx); To: m_CheckNoCtrl.SendMessage (EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx); I overlooked specifing the control I was sending the message for! It now works for me too. Thanks!!! :)
-
Can't update text fileSee if this helps! When the "r+", "w+", or "a+" access type is specified, both reading and writing are allowed (the file is said to be open for “update”). However, when you switch between reading and writing, there must be an intervening fflush, fsetpos, fseek, or rewind operation. The current position can be specified for the fsetpos or fseek operation, if desired.
-
Repositioning a cursor in a controlI'm changing the text in a control and I want to reposition the cursor at the end of the text after I display the text. What I'm doing doesn't work! The cursor is always set to the beginging of the text (due to the "SetFocus"). Any ideas? NB: m_CheckNoCtrl is a control to the field! m_CheckNoCtrl.SetWindowText(szTemp); // Paint new text in control m_CheckNoCtrl.SetFocus(); // Set focus to control int ndx = m_CheckNo.GetLength(); // Get the new length SendMessage (EM_SETSEL, (WPARAM)ndx, (LPARAM)ndx);
-
Access another dialogs controlsThanks Rocky, I'll give this a try.
-
Access another dialogs controlsIs there an easy way to access controls fron another applications dialog? I need the ability to pick up data from an application that runs concurrently with my app, however I'm not the author of the other application. I'd like to be able to find the control field ID's and pickup what the user keyed, and dump that data into my application to save key strokes (ie. Name, Address, City, State, Zip).