When compiling this code:
#include int WINAPI WinMain(HINSTANCE hInsance,HINSTANCE hPrevInstance,PSTR cmdLine,int showCmd){ MessageBox
You have UNICODE defined, so MessageBox is expecting a wide string.
UNICODE
MessageBox