int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd)
{
messageBox(NULL, “hello, world!”, “My First Windows Application”, NULL);
return 0;
}
please tell me whats wrong it always says 1 error cannot compile with msvc++ 6.0 stand edition… or i need to use other program ? or why it wont work or how to fix the problem please ive tried for over 1 month on websites ect trying to get how to fix but pelase help!! it would be very apprieciated
Could you please post the exact error message you get (it includes an error code, like C1234 for example) and a line number, and is it a compilation error (I guess it is) or a linking error ?
A wild guess (because you did not provide much info to work with), you are trying to compile this code as a “console” project and not as a “Win32 Application” project.
thats the eror message i do it in when i make the file its in well ive tried it in consel and other and tried it in all of the things i can ok so please helpo me