sessionsettings->selectedrow_inpat has value 4 which is correct.
However, when m_editcolumnvalue.SetWindowText(sessionsettings->filtervalue_inpat); is performed, this value magically changes to a random integer.
can anyone explain this? I already thought about pointers, but how is this possible?
(sessionsettings->selectedrow_inpat = integer, sessionsettings->filtervalue_inpat = CString, CString is made empty in constructor and is empty at the time when it comes to this part.)
(yes I know a solution would be to switch the lines, but I just want to know why why why??)
Its probably not that line, but the line previous to it that has the problem. It only get exposed in debug due to the way the #ifdef gets evaluated.
Take a look at the file that is including math.h and see what is just before it. Also, try getting the preprocessor to give you a file you can examine to see what the C++ compiler is actually getting. My bet is that you have a missing ";" in one of the files including math.h
Roger Allen - Sonork 100.10016 Strong Sad: I am sad I am flying Who is your favorite Strong?
I am afraid that is not the case, i checked the files including the math.h file and there is no ; missing. Anyway, how could this correlate with the problem solution by switching to the release mode ?
I am almost certain that it has to do with environment settings, since the project worked on my old machine, but after I set up my computer anew i can only run under release mode. It really pisses me off,
I am working in a project. That require to write a program which can run at the same time in several computers but sharing the common data. The size of data is about 50MB.
Speed is a critical problem. Some operations allow all computers doing concurrently, but some operations allow one computer doing only (the data must be locked and have to synchronize to all others computers after that operation completed).
I need some suggestions about that problems (idea, URL, samples...).
Any advice is welcome.
When a menu is gone(the user clicks on an menu item, or hits the esc key, or clicks on the desktop, etc), can its parent window be notified? I only could find WM_INITMENU and WM_INITMENUPOPUP on MSDN, which are sent before the menu shows up, which are not I'm looking for...
I have a lot of old code which (unfortunately) isn't thread based.
A click to a button causes an action or calculation wich may last some time - say 1 - 3 minutes for example. I use progress bars to communicate the advance of the process to the user.
Since XP I have the problem, that everything (the progress bar) stucks up if I am activating another window and switch back to the original one (only a white screen).
In 2000 the program beaves different. If I try to activate another window of the same application, or try to close the application, windows says that the programm is not reacting. If I click abort -> the progess bar keeps running. Switching to another application and back does not work in 2000.
Redesing the Code to run in threads.
Is there another, simpler way to accomplish the update? I guess, I have to call the message handler function of the active window or give the OS some time to accomplish all window - events.
Can anybody help me? A simple Answer: "There is no way, you have to use threads, would be enogh".
I would like to remove focus editbox when user press Enter key(like Tab Key)
I can do it on create project by Dialogbase but can't do it on SDI
Now! I can't get Message for check press Enter key.
Please show example to me..
I found that both CInternetSession.OpenUrl(...) and CHttpFile.SendRequest(...) write cookies automatically after return. but I really want to control this by myself, or can I prevent wininet from writing cookies, and them let me use SetCookie(...) to do seperately?
by the way, I do it at syc mode, for someone says wininet asyc is not multithread-safe.
I have a touch screen application and on one part of this i need the user to set the time. I have a CDateTimeCtrl to show the time to be set and buttons numbered 0 to 9 to allow the user to set the text for this. I have tried sending WM_KEYDOWN/WM_KEYUP/WM_CHAR messages when the user clicks one of these buttons to set the time but this has no effect, can anyone help me with this.
I want to subclass the Edit used to write a SQL-Query in MS Access. The edit is of the special Access class "OKttbx".
Everything works, I injected a DLL into the Access-Process and the subclassing works just fine but I can't get the Windowtext of the control...
I tried the GetWindowText()-Function but I only get a pointer to stuff (lol). The call to GetWindowText() is in the subclassed WindowProc (in WM_PAINT) and it is definitely no problem of address spaces (as mentioned before I'm in the Access-Process).
Has somebody an idea how I can get this to work?
Last Visit: 31-Dec-99 19:00 Last Update: 14-Feb-16 2:01