www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/26/09:02:48

From: "Jan Bares" <jan DOT bares AT antek DOT cz DOT no DOT spam>
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<Windows.h>

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" <eglebbk AT phys DOT uva DOT nl> wrote in message
news:39572a97 DOT 2569477 AT news DOT wins DOT uva DOT nl...
> Newsgroup: comp.os.msdos.djgpp
>  From: "Jan Bares" <jan DOT bares AT antek DOT cz DOT no DOT spam>
>  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<RYH/@T*#0II
M;G0 AT 5TE DOT 05!)"5=I;DUA:6XH#0H)"4A)3E-404Y#12!H26YS=&%N8V4L(" @
M(" @+R\@:&%N9&QE('1O(&-U<G)E;G0@:6YS=&%N8V4-"@D)2$E.4U1!3D-%
M(&A0<F5V26YS=&%N8V4L(" O+R!H86YD;&4@=&\@<')E=FEO=7,@:6YS=&%N
M8V4-"@D)3%!35%(@;'!#;61,:6YE+" @(" @(" @(" O+R!C;VUM86YD(&QI
M;F4-"@D):6YT(&Y#;613:&]W*2 @(" @(" @(" @(" @+R\@<VAO=R!S=&%T
M90T*"7L-"@E-97-S86=E0F]X*$Y53$PL(")0<G-K(BP@(E!R<R(L($U"7T]+
6*3L-"@T*"7)E='5R;B P.PT*"7T-"@``
`
end

- Raw text -


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