delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/10/00:15:24

Newsgroups: comp.os.msdos.djgpp
Subject: Re: RSXNTDJ install problems, help?
From: vischne AT ibm DOT net-nospam (root)
Organization: The Light
References: <343bc324 DOT 663711 AT news DOT ovis DOT net>
MIME-Version: 1.0
NNTP-Posting-Host: 32.100.34.104
Message-ID: <343d703c.0@news3.ibm.net>
Date: 10 Oct 97 00:01:00 GMT
Lines: 48
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019