Mail Archives: djgpp/2000/06/26/09:02:48
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 -