I would like to be able to process Win32 messages in a console application and / or inside a standalone DLL.
I was able to do this in .NET with the next article, and it works fine in C # inside the console application and the standalone DLL
http://msdn.microsoft.com/en-us/magazine/cc163417.aspx
Is there a way to make an equivalent with the C / C ++ Win32 API? I tried doing RegisterClassEx (...) and CreateWindow (...), even passing HWND_MESSAGE to hWndParent, but the problem is that messages are not processed after creating the "invisible" window, probably due to the lack of a message.
Where will the message pump work if you have an entry point to the DLL? I tried to create another thread in the DLL and put while (GetMesage (..)), but that didn't work either.
Any ideas?
source
share