www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/18/03:36:14

Date: Thu, 18 Jun 1998 09:34:14 +0200 (MET DST)
From: Olivier Perron <perron AT art DOT alcatel DOT fr>
To: New6ie <new6ie AT aol DOT com>
Cc: djgpp AT delorie DOT com
Subject: Re: RSXNTDJ install problems
In-Reply-To: <1998061713504300.JAA07469@ladder01.news.aol.com>
Message-Id: <Pine.GSO.3.96.980618093155.20842A-100000@rtbsci146s>
Mime-Version: 1.0

On 17 Jun 1998, New6ie wrote:

> 
> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
> LPSTR lpCmdLine, int nCmdShow)
> {
> 	MessageBox (NULL, "Hello Win32", "First App", MB_OK);
> return 0;
> }
> 
> 
> I get the following errors:
> 
> 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)
> 
> Any help would be appreciated.
> -JayD.
> 
You didn't #include "windows.h", that's why you got those errors.
Every windows program *must* have #include "windows.h"

Olivier.

- Raw text -


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