Thread overview
How come a Dos and a Win32 window opens when I run my Win32 program?
Feb 01, 2002
Jan Knepper
Feb 02, 2002
Walter
February 01, 2002
Hi!
        I compiled a program written for Win32. When I run the program it
opens an empty DOS window then the window I designed. How can I make it show
only the Win32 window? Please help me. ThanQ,
            JVFF


February 01, 2002
Use WinMain instead of main.

Add a .def file with
EXETYPE          NT
SUBSYSTEM    WINDOWS,4.0



Janito Vaqueiro Ferreira Filho wrote:

> Hi!
>         I compiled a program written for Win32. When I run the program it
> opens an empty DOS window then the window I designed. How can I make it show
> only the Win32 window? Please help me. ThanQ,
>             JVFF

February 02, 2002
Do I have to create a MyProgram.def with the text:

EXETYPE          NT
SUBSYSTEM    WINDOWS,4.0

or make a MyProgram.h with the text? Or define the values? I am new in DMC++. Please help me.


"Jan Knepper" <jan@smartsoft.cc> escreveu na mensagem news:3C5AE8C5.4C9F3E4E@smartsoft.cc...
> Use WinMain instead of main.
>
> Add a .def file with
> EXETYPE          NT
> SUBSYSTEM    WINDOWS,4.0
>
>
>
> Janito Vaqueiro Ferreira Filho wrote:
>
> > Hi!
> >         I compiled a program written for Win32. When I run the program
it
> > opens an empty DOS window then the window I designed. How can I make it
show
> > only the Win32 window? Please help me. ThanQ,
> >             JVFF
>


February 02, 2002
That would be a .def file:

    www.digitalmars.com/ctg/ctgDefFiles.html


"Janito Vaqueiro Ferreira Filho" <jvffprogramming@ieg.com.br> wrote in message news:a3faeb$qr5$1@digitaldaemon.com...
> Do I have to create a MyProgram.def with the text:
>
> EXETYPE          NT
> SUBSYSTEM    WINDOWS,4.0
>
> or make a MyProgram.h with the text? Or define the values? I am new in DMC++. Please help me.
>
>
> "Jan Knepper" <jan@smartsoft.cc> escreveu na mensagem news:3C5AE8C5.4C9F3E4E@smartsoft.cc...
> > Use WinMain instead of main.
> >
> > Add a .def file with
> > EXETYPE          NT
> > SUBSYSTEM    WINDOWS,4.0
> >
> >
> >
> > Janito Vaqueiro Ferreira Filho wrote:
> >
> > > Hi!
> > >         I compiled a program written for Win32. When I run the program
> it
> > > opens an empty DOS window then the window I designed. How can I make
it
> show
> > > only the Win32 window? Please help me. ThanQ,
> > >             JVFF
> >
>
>