Hello...
I am using a mutex synch mechanism in an multi-threaded environmnet (apache).
When I got several of the threads working - note that Apache choses the threads to be runned from a thread pool - the system gets into a deadlock and all the threads are waiting on the same mutex, without...
Did that solved your problem?
You have to beware of such source-file transfers between Unix-like platforms and Windows because the windows compilers use the \r\n as a line delimiter, whereas in any unixes, the terminator is only \r.
Most Windows C/C++ compilers will burp errors because of that...
What you need to do is dig around for the "Reverse Polish Notation". This is a binary-tree representation of a mathematical function and this is what you need to use to compute values for your expressions.
Once you built that tree, it's relatively easy to compute the value of a function and...
what exactly are you talking about? Do you have a schema validating your XML?
You have to be more specific. What parsers do you use? MSXML? SAX?
~~Razvan
Nosferatu
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
Zyrenthian~~
You should be careful about that code...
You use CreateMutex with bInitialOwner set to FALSE (second parameter).
That means that the thread/process that created the mutex does not own it, you should be calling for WaitForSingleObject to actually own it.
Otherwise, if you...
Well, I found related articles by looking for IND00. The most interesting is called
"FIX: Calling a Function Returning double May Not Pop FPU Stack",
which was just what was happening to my code (I was still in the debug version - /Od).
--Razvan
Nosferatu
We are what we eat...
Right about Rome.
You would obtain such results by trying, let's say, sqrt(-1).
NAN means Not A Number.
Same result will be obtained when doing 10/0, for instance.
These strings are just cookies to be seen in the standard err; probably the best way to check for a faulty outcome of such an...
Duh... indeed.
That sort of confusion is happening when you are using one part of the brain to work on projects and the other part to judge current events implications on international scene...
This darn TV! I just can't turn it off. But I did in the end. But again... CNN's main page seems to...
Well... I found the problem under your d) subject, Pete.
The control that was causing the problems was a list control.
The LVS_SHAREIMAGELISTS style should have been used.
Strangely, when using other lists, I did not get this problem, even if the flag was not set in those cases neither...
Hello...
I am having a bit of trouble with some dissapearing bitmaps in my GUI.
Most of the controls in the application share the same image list, loaded from the resources as the application starts.
At some point, when I do some stuff with a Database in a dialog, the icons start to dissapear...
Hey Pete, do you have a reference for the platform SDK download? I looked for "platform sdk download" on the MS site and found nothing...
Thanks,
--Razvan Nosferatu
We are what we eat...
There's no such thing as free meal...
once stated: methane@personal.ro
Err... I hope that writing createtimerqueue is just out of commodity. (CreateTimerQueue).
What VC are you using? Since the method is supported on win2000, I guess it is not present on the MSVC 6.0 distribution, released in '97. If you have vc7, adding kernel32.lib should be enough, no...
Yes, you have to create them on the fly (a new CButton, for instance) having as parent the dialog you want to put them in.
Then be sure to assign a new ID to your control, an ID that your parent dialog is aware of, for example:IDC_NEW_BUTTON.
In the dialog's wnd proc watch then for messages...
Thanks Xwb. Actually, as I am working mostly on Windows, I am sure I'll find huge pain when going to port the system library on Unix.
This thread shared memory with its locks needed seems to be easy, comparing to shared memory on Unix.
But doing the full-shared memory with file maps will help...
I don't know if I got this right, but is the code you posted in the initialization function?
If so, that'll get called on initialization only!
You should handle the CBN_CLOSEUP event of your comboboxes and check the items there. That will certainly work.
Nosferatu
We are what we eat...
There's...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.