Whats the difference between PostMessage and SendMessage?
A. PostMessage and SendMessage take the same parameters, and eventually send a message to a WndProc. PostMessage will place the message in the message queue, while SendMessage will send it right to the WndProc, by-passing the queue. You might want to call PostMessage to avoid recursion in the WndProc, or to allow Windows to properly handle the precedence of a message. Windows does not treat all messages as the same, certain messages are moved to the front of the queue (for priority), and some messages are removed from the queue automatically if there’s already a message of the same type already in the queue. Q. When I compile my program, I get an error:unresolved external symbol_WinMain@16 Q. When I compile my program, I get an error:unresolved external symbol _main A. Both of these error messages are similar in cause. When you write a Windows program, the compiler provides you with a main function, and expects you write a WinMain. If you write a ‘console’ (text-based) program, the com