delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/12/16:17:43

From: "Ian" <duxbury AT kentmere23 DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: rsxntdj
Date: Sun, 12 Nov 2000 21:08:05 -0000
Organization: Customer of Energis Squared
Lines: 34
Message-ID: <8un0hm$c6f$1@news7.svr.pol.co.uk>
NNTP-Posting-Host: modem-41.atalante.dialup.pol.co.uk
X-Trace: news7.svr.pol.co.uk 974062966 12495 62.136.129.169 (12 Nov 2000 21:02:46 GMT)
NNTP-Posting-Date: 12 Nov 2000 21:02:46 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I 'm trying to learn about basic windows apps using rsxntdj.

I have set things up so when I type c:>gccw32 -v I get output:
Reading specs from F:\rsxntdj\lib\specs
gcc version 2.8.1

But when I try compiling prog I get c:\gccw32 test.c
In function WinMain
MB undeclared

I used a sample prog from help files like so:
#include <windows.h>

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,

LPSTR lpCmdLine, int nCmdShow)

{

MessageBox (NULL, "Hello Win32", "First App", MB_OK);

return 0;

}

Anyone tell me what I'm doing wrong?

Cheers.



Copyright 1995-1999 Rainer Schnitker


- Raw text -


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