From: "Tanes Sriviroolchai" References: <6ii8vk$36e$1 AT nnrp1 DOT dejanews DOT com> Subject: Re: Deperately need help install RSXNTDJ Date: Mon, 4 May 1998 11:22:13 +0700 Lines: 45 Organization: NCR (Thailand) Message-ID: Newsgroups: comp.os.msdos.djgpp To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk etunstal AT XXXbellatlantic DOT net wrote in message <6ii8vk$36e$1 AT nnrp1 DOT dejanews DOT com>... >No matter what I do, I can't seem to get RSXNTDJ working. I've read >RSXNTDJ.HLP so many times I've lost count. Here is how I have things set up: > >test.c: >int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, > LPSTR lpCmdLine, int nCmdShow) > >{ > MessageBox (NULL, "Hello Win32", "First App", MB_OK); > return 0; >} > >running > gcc -Zwin32 test.c -o test.exe > >gives > >test.c:1: parse error before `WinMain' >test.c:1: parse error before `hInstance' >test.c: In function `WinMain': >test.c:4: `NULL' undeclared (first use this function) >test.c:4: (Each undeclared identifier is reported only once >test.c:4: for each function it appears in.) >test.c:4: `MB_OK' undeclared (first use this function) > > >No matter what I do, I get the error messages listed above. Can someone PLEASE >tell me what I'm doing wrong? > >EMT Add line: #include before your WinMain line. Regards, Tanes