Simple problem program - opens a dos window first.

  • Thread starter Thread starter Paul Hemans
  • Start date Start date
P

Paul Hemans

When I run my application (built with c++ visual studio 2005) a dos box pops
up and then my form loads. When the form is closed the dos box goes away. It
has nothing in it and the title is the path and file name of the executable.
How do I get rid of it?

I think what is needed is /target:winexe (from another thread) but how do I
specify this option in the IDE?

thanks
 
Paul Hemans said:
When I run my application (built with c++ visual studio 2005) a dos box
pops up and then my form loads. When the form is closed the dos box goes
away. It has nothing in it and the title is the path and file name of the
executable. How do I get rid of it?

I think what is needed is /target:winexe (from another thread) but how do
I specify this option in the IDE?

thanks
Which project template did you use?
 
I was using a project that came with a book I am learning from so I didn't
build it from scratch.
 
Paul Hemans said:
I was using a project that came with a book I am learning from so I didn't
build it from scratch.
Can you provide the title, author and ISBN of the book, and which chapter
the project is associated with. Knowing something about the project will
help get an answer to your question.
 
Paul Hemans said:
It is happening on all my projects

Do you know how to specify /target:winexe ?
Unless your VS 2005 installation is corrupt, it should happen automatically,
given that the correct project template (i.e. Win32 or MFC as appropriate)
was used. That's why more information is needed.
 
I used the code off the CD from the VC++.Net for dummies book. On import it
was converted from 2003.
I have ordered a book on C++ for 2005, and I think I will have another go
when that comes in.

Thanks for your help.
 
Paul Hemans said:
I used the code off the CD from the VC++.Net for dummies book. On import it
was converted from 2003.
I have ordered a book on C++ for 2005, and I think I will have another go
when that comes in.

Thanks for your help.
OK, now I see that you're using code written for VC++ 2002/2003 managed
extensions. I saw the following post in another group, and it may help you
with the code that came with "Dummies":

This is a utility that converts managed C++ to C++ CLI.

http://blogs.msdn.com/vcblog/archiv...xtensions-for-c-to-c-cli-conversion-tool.aspx

"It's not perfect, but people have found it useful. The tool is totally
unsupported, but includes source code so those needing a more elaborate tool
can use it as a starting point."

-cd
 
Back
Top