Command Prompt Window(managed C++ App)

  • Thread starter Thread starter Aftab Alam
  • Start date Start date
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
 
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.
 
Back
Top