From: "Ian" 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 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