Executing the executable

V

Vikram

Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output. Input file is a separate
normal file and not a visual C++ file.
 
S

Sharad Kala

Vikram said:
Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output. Input file is a separate
normal file and not a visual C++ file.

It's offtopic on this newsgroup.
Read the welcome message - http://www.slack.net/~shiva/welcome.txt

<OT>Perhaps ShellExecute(Ex) is what you are looking for.</OT>
 
K

Karl Heinz Buchegger

Vikram said:
Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output.

OK.
Open up a DOS prompt, go to the directory where the exe resides and
start it.

To bad most people in these days no longer know how to operate
a command line.
 
J

Jack D

OK.
Open up a DOS prompt, go to the directory where the exe resides and
start it.

To bad most people in these days no longer know how to operate
a command line.

<OT>If he wants to debug the code you can add command line arguments in
the project settings</OT>

As a hunch: microsoft.public.vstudio.general seems alive and might be
able to help you better...
 
J

JKop

Karl Heinz Buchegger posted:
To bad most people in these days no longer know how to operate
a command line.

DOS Secrets by Dan Gooding

That was a great companion of mine from age 7 upwards.
ansi.sys deserves a medal.


-JKop
 
T

Thomas Matthews

Vikram said:
Using Microsft Visual Studio C++ 6.0, I have compiled my code and I
need to execute this executable by specifying my input file and my
output file, eg. ./DMDC2 input > output. Input file is a separate
normal file and not a visual C++ file.

What is a "separate normal file" and how does it differ from:
o A text file
o A database file
o A Microsoft Word file?
o A JPEG file?
o A MPeg file?
o A visual C++ project file?
I think most of these are normal files.

Look up the system() function.

Also, look at your operating system help file. The
operating system may have functions to execute other
files.

--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top