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...
The Problem: 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.
Solution: Redesing the Code to run in threads.
Question: 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 In CFormview 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.
Hi, 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).
I have a semaphore controlled thread queue in my application. Now I have a problem to start my threads from the queue. After call of _beginthread I get a thread-id not equal -1 and not equal 0, but my thread is not started (no trace message from thread, no break in breakpoint).
If I "help the application" with debugger "set next statement" to an other call of the _beginthread, I get an other thread-id (!= -1 && != 0), but thread is not started. In Taskmanager the threadcount is not inkremented.
Who can help me?
My application worked correcly under W2K. After compile the code with the .NET compiler the application works fine, besides on only one computer. But this computer is the machine, there must run the application :( Can it be a problem with not correct installed framework or libraries ?
An important remember is, that the threats will be started correcly after restart the application. After some thread calls (between 10 and 100) it doesnt work. All threads terminated via _endthread() and in a good time (1-300 seconds).