//The first box appears, but then it stops after that. Please help, and thanks in advanced!
Code:#include <iostream> #include <windows.h> using namespace std; const string title = "Diplomacy :: Version 0.01 :: Created by onlineone22"; int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { int launch = MessageBox(NULL, "Would you like to launch Diplomacy?", title.c_str(), MB_YESNO); if(launch == IDYES) { CreateWindowEx ( 0, NULL, title.c_str(), WS_SYSMENU, CW_USEDEFAULT, CW_USEDEFAULT, 445, 445, HWND_DESKTOP, NULL, hInstance, NULL ); } return 0; }




Reply With Quote
