www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - How come a Dos and a Win32 window opens when I run my Win32 program?

reply "Janito Vaqueiro Ferreira Filho" <jvffprogramming ieg.com.br> writes:
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
Feb 01 2002
parent reply Jan Knepper <jan smartsoft.cc> writes:
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
Feb 01 2002
parent reply "Janito Vaqueiro Ferreira Filho" <jvffprogramming ieg.com.br> writes:
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
Jan 23 2002
parent "Walter" <walter digitalmars.com> writes:
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
Feb 01 2002