#include <Windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
messagebox(NULL, L"1st WIN32 API !!!",L"note",MB_OK);
return 0;
}
Here is my question: Why should I use
hInstance, hPrevInstance, lpCmdLine, nCmdShow
? In place of using that I used
int WINAPI WinMain(HINSTANCE first, HINSTANCE second, LPSTR third, int fourth)
and program works.