Mail Archives: djgpp/1997/10/10/00:15:24
In article <343bc324 DOT 663711 AT news DOT ovis DOT net>, esperan AT ovis DOT net says...
>
>
>I just got and installed RSXNTDJ and I am ecstatic about using it.
>I've programmed the X Windows environment in C but was under the
>impression that C++ was the only way to write Win95 apps from
>everything I've seen. Anyhow, I got it, meticulously followed the
>installation directions... and I can't get the test.c file to compile.
>I created a file called test.c and out in it the following:
>
>int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
>
>LPSTR lpCmdLine, int nCmdShow)
>
>{
> MessageBox (NULL, "Hello Win32", "First App", MB_OK);
>
>return 0;
>
You don't suppose that you forgot `#include <windows.h.>' do you?
>}
>
>
>When I go to compile with "gcc -Zwin32 test.c -o test.exe" I get the
>following output from gcc:
>
>test.c:1: parse error before `WinMain'
>test.c:1: parse error before `hInstance'
>test.c: In function `WinMain':
>test.c:6: `NULL' undeclared (first use this function)
>test.c:6: (Each undeclared identifier is reported only once
>test.c:6: for each function it appears in.)
>test.c:6: `MB_OK' undeclared (first use this function)
>
>
>Did I miss something in the install? Can anyone give me a clue as to
>why I am getting these errors and maybe give me clues as to how to fix
>them? Thanks in advance.
>
>
>L8r
>Esperandi
>http://www.ovis.net/~esperan
>* Odd Jobs for the Impossible Computers *
>* Rantings of a madman who is not mad *
>* Soon: Stream of Consciousness Palace *
- Raw text -