My program compiles, but the Console screen pops up and dissapears quickly. Does anybody know the problem? I'm using Dev C++ 4....Code:#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASS wndclass; HWND hWindow; if(RegisterClass(&wndclass) == 0) return FALSE; hWindow = CreateWindow ("MyWindow", // from wndclass.lpszClassName "Gcn_Zelda's Window", // this will show on title bar WS_OVERLAPPEDWINDOW, // border, title, min-max-close button // WS_OVERLAPPED // border, title // WS_POPUP // no title, no button // WS_VISIBLE // window is visible from start // WS_VSCROLL // window has vertical scroll bar // WS_HSCROLL // window has horizontal scroll bar // WS_MAXIMIZE // window is created in maximized state // WS_MINIMIZE // window is created in minimized state 0, // starting x-coord (upper-left) 0, // starting y-coord (upper-left) CW_USEDEFAULT, // window's x-size CW_USEDEFAULT, // window's y-size NULL, // parent window's handle NULL, // handle to a menu hInstance, // copy from WinMain() NULL); // disregard... if(hWindow == NULL) return FALSE; ShowWindow(hWindow, SW_SHOW); // show created window // SW_HIDE // hide created window // SW_RESTORE // show window in restored state // SW_MAXIMIZE // show window in maximized state // SW_MINIMIZE // show window in minimized state }