hi,
I wrote a very simple program in c using windows.h and when I compile it and run it I get a DOS window and them my windows message box
#include <windows.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
MessageBox(NULL, "Good Morning", "BOO!!!", MB_OK);
return 0;
}
this is the code though I think it's irelevant, and I tryed compiling the code in Visual c++ and I don't get the DOS window there.
Can anyone pls tell me how to get rid of that?
ty