Command Prompt Window(managed C++ App)

A

Aftab Alam

Hello All
I wonder why the Dos Window appears in back ground if we make a managed c++
application how can I stop it
in MSDN samples there is a sample caculator which is made in managed cpp but
it doesnt show dos window when we run the applicaiton but I could not find
in difference in it and my application.
Regards
Muhammad Aftab Alam
 
L

Liaqat Fayyaz

I think you have the /SUBSYSTEM switch on the linker
command line the wrong way round. The operating system
loader looks at the flag that's set in the executable
image header to determine which subsystem (Windows GUI,
console, driver, native, POSIX) the image is for, and
from that, how it should start the image. The image is
likely set for CONSOLE when it should be set for WINDOWS
System. Change SubSystem to Windows.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top