Im trying to compile this in VC++ Epress 2010 using file extension .c and project type as Win32 but still i get the following warnings
warning C4133: 'function' : incompatible types - from 'char [22]' to 'LPCWSTR'
warning C4133: 'function' : incompatible types - from 'char [5]' to 'LPCWSTR'
and when i run the program the text in the message box in unreadable Japanese or something. This code should not need a type cast to function running the C compiler???
Code:#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow){ MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK); return 0; }



LinkBack URL
About LinkBacks


