473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Simple problem program - opens a dos window first.

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
Dec 6 '06 #1
7 1020

"Paul Hemans" <pa*************@laberg.com.auwrote in message
news:u$****************@TK2MSFTNGP06.phx.gbl...
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?
Dec 6 '06 #2
I was using a project that came with a book I am learning from so I didn't
build it from scratch.

"pvdg42" <pv****@newsgroups.nospamwrote in message
news:OR**************@TK2MSFTNGP05.phx.gbl...
>
"Paul Hemans" <pa*************@laberg.com.auwrote in message
news:u$****************@TK2MSFTNGP06.phx.gbl...
>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?

Dec 6 '06 #3

"Paul Hemans" <pa*************@laberg.com.auwrote in message
news:e6**************@TK2MSFTNGP03.phx.gbl...
>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.
Dec 7 '06 #4
It is happening on all my projects

Do you know how to specify /target:winexe ?

"pvdg42" <pv****@newsgroups.nospamwrote in message
news:eM*************@TK2MSFTNGP06.phx.gbl...
>
"Paul Hemans" <pa*************@laberg.com.auwrote in message
news:e6**************@TK2MSFTNGP03.phx.gbl...
>>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.


Dec 7 '06 #5

"Paul Hemans" <pa*************@laberg.com.auwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
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.
Dec 7 '06 #6
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.

"pvdg42" <pv****@newsgroups.nospamwrote in message
news:%2******************@TK2MSFTNGP04.phx.gbl...
>
"Paul Hemans" <pa*************@laberg.com.auwrote in message
news:%2****************@TK2MSFTNGP05.phx.gbl...
>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.

Dec 9 '06 #7

"Paul Hemans" <pa*************@laberg.com.auwrote in message
news:uv***************@TK2MSFTNGP02.phx.gbl...
>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/archive...sion-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
Dec 10 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Joseph Barron | last post by:
Here is a SIMPLE problem that I'm trying to solve. It works in Netscape 6.2, but IE6 gives ""No such interface supported." Below are page1.htm and page2.htm . In page1.htm, there are two...
7
by: Zack Wahab | last post by:
Hi, I use Dev C++ compiler. Tried this program : // Fig. 1.6: fig01_06.cpp // Addition program. #include <iostream> // function main begins program execution int main()
3
by: Bore Biko | last post by:
Dear, I don't have enought money to by a original Visual C++, so I use Visual C++ 6.0 Enterprise edition, this version doesen't have a HELP. Most of my friends programmers praise C++, as a...
4
by: MrMike | last post by:
Hi. I have a hyperlink control (lnkViewLogData) which is assigned the following attribute when the page loads... Me.lnkViewLogData.Attributes.Add("onClick", _ ...
3
by: shapper | last post by:
Hello, I work mostly in web design and usually I create an administration area. To access administration my clients usually visit a link on their browsers. I would like to create a windows...
3
by: Fred | last post by:
Hi, I have an Excel add-in and an ActiveX component and a script which puts the add-in in the XLStart directory and installs and registers the ActiveX component. Basically the script is my install...
7
by: Jaggu | last post by:
Hi , I need to close main window, once the child window succesfully opens else main window to remain. In my case when I close the main window immediately after the "window.open()" as mentioned...
1
by: axiarich | last post by:
We have some doc mgt "lite" on our site. I basically have a window with a button that opens the relevant document (Excel, PDF, etc.). The button calls some javascript which basically performs a...
2
by: tomko | last post by:
Hi, My program uses the Process class to start a bat file that starts an exe. When I run my program inside Visual Studio (debug) the bat and exe run in the background (are not visible) and all...
1
by: astrogirl77 | last post by:
I'm new to C++ and am hoping to find help with coding a simple C program, am wanting to obtain code and functioning exe's. I code in an old version of Visual Basic 4.0, I have a simple app that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.