From: "Jan Bares" Newsgroups: comp.os.msdos.djgpp Subject: Re: Please help me with RSXNTDJ Date: Mon, 26 Jun 2000 13:02:00 +0200 Organization: Video On Line Lines: 58 Message-ID: <8j7d7a$lvt$1@news.vol.cz> References: <8j7551$gd0$1 AT news DOT vol DOT cz> <39572a97 DOT 2569477 AT news DOT wins DOT uva DOT nl> NNTP-Posting-Host: antek.vol.cz X-Trace: news.vol.cz 962017322 22525 195.250.137.143 (26 Jun 2000 11:02:02 GMT) X-Complaints-To: sysadmin AT vol DOT cz NNTP-Posting-Date: 26 Jun 2000 11:02:02 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Thanks for reply, of course I use WinMain: #include int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Text", "Text", MB_OK); return 0; } Any other ideas? Jan -- Jan Bares (remove no.spam from my email address) JPCAD Graphics Engine developer, surf to http://www.antek.cz "Evert Glebbeek" wrote in message news:39572a97 DOT 2569477 AT news DOT wins DOT uva DOT nl... > Newsgroup: comp.os.msdos.djgpp > From: "Jan Bares" > On Mon, 26 Jun 2000 10:44:14 +0200 > > >Hi, I am new to RSXNTDJ and I have big problem compiling simple Win32 API > >application. I have latest version of RSXNTDJ and djgpp. I have simple > >application that just calls MessageBoc and dies. When I run gcc, the > >application gets compiled and linked, but the final step NtBind creates > >console (instead of Windows) application. Can you tell me how NtBind > >recognizes type of application? There are no switch to control this > >behaviour. Or can you tell me where can I find source of NtBind? > I only use RSXNTDJ with Allegro, so I can't be sure, but IIRC, it > creates a console app. if you use main and a GUI app. if you use > winmain. > > regards, > > Evert Glebbeek begin 666 Test.cpp M(VEN8VQU9&4B5VEN1VYU0RYH(@T*(VEN8VQU9&4\5VEN9&]W