First Windows Program !!better!!
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) if (msg == WM_DESTROY) PostQuitMessage(0); return 0; return DefWindowProc(hwnd, msg, wParam, lParam);
return 0;
// WinMain function int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) first windows program
Compile the program using a C++ compiler, such as MinGW: LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam,