Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Compiling Windows Program

Name: Anonymous 2005-11-15 14:39

I have this source file:

#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpCmdLine, int nCmdShow)
{
    MessageBox(NULL, "Goodbye, cruel world!", "Note", MB_OK);
    return 0;
}

and I have the command-line compile tools. What do I enter to make it compile?

Name: Anonymous 2005-11-15 19:10

I have the Visual Studio Command-line Compiler. I type cl goodbye.c and cl.exe can't find windows.h

What do I do to make it find windows.h or have all of you been using the IDE?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List