CWinThread
-
I to all, I have a big problem with a CWinThread derived class. From another class I post messages to this derived class with PostThreadMessage(...) member function, and if I store all messages in a log file I can see all them. On the derived class, if I store to a log file all messages that I receive, I can't see all them! X| So it seems that my derived class is missing some messages! Is this possible? help me please. Thanks in advance.
-
I to all, I have a big problem with a CWinThread derived class. From another class I post messages to this derived class with PostThreadMessage(...) member function, and if I store all messages in a log file I can see all them. On the derived class, if I store to a log file all messages that I receive, I can't see all them! X| So it seems that my derived class is missing some messages! Is this possible? help me please. Thanks in advance.
This one gave me grief when Win2K came out. Check out the KB, and you will see it is a "feature". You need to create a HiddenWindow and send the messages there. http://support.microsoft.com/support/kb/articles/Q183/1/16.ASP Shane
-
This one gave me grief when Win2K came out. Check out the KB, and you will see it is a "feature". You need to create a HiddenWindow and send the messages there. http://support.microsoft.com/support/kb/articles/Q183/1/16.ASP Shane
Thanks a lot Shane, but I've solved my problem simply adding a sleep statement of 100 ms after the PostThreadMessage(...):confused: :confused: :confused: ! I don't know why, but now it works fine..... Thanks Massimo "Take time to think, it is the source of power"
-
Thanks a lot Shane, but I've solved my problem simply adding a sleep statement of 100 ms after the PostThreadMessage(...):confused: :confused: :confused: ! I don't know why, but now it works fine..... Thanks Massimo "Take time to think, it is the source of power"
Be very careful with this solution, what works for you may not work for those with Dual CPUs. Shane
-
Be very careful with this solution, what works for you may not work for those with Dual CPUs. Shane