467,144 Members | 1,168 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,144 developers. It's quick & easy.

DOS Unmanaged C++ and Launching Another App

I have a problem that I can't seem to solve:
I need to write an unmanaged C++ app that will run off of a floppy.
Basically, I will boot into DOS (from a floppy), and run my executable
from the floppy. The executable will crunch some data and then launch
another application.
How can I launch the other application?
I've tried system(), but it needs a specific path, which isn't viable
in DOS mode. The two apps will be in the same directory, so basically
this is the process:

CrunchData();
LaunchApp();

How could I launch the other app? I can't use Process since this will
be unmanaged code for DOS, either =(

Thanks so much.
Oct 20 '08 #1
  • viewed: 1436
Share:
2 Replies
On 2008-10-20 18:54, te******@gmail.com wrote:
I have a problem that I can't seem to solve:
I need to write an unmanaged C++ app that will run off of a floppy.
Basically, I will boot into DOS (from a floppy), and run my executable
from the floppy. The executable will crunch some data and then launch
another application.
How can I launch the other application?
I've tried system(), but it needs a specific path, which isn't viable
in DOS mode. The two apps will be in the same directory, so basically
this is the process:

CrunchData();
LaunchApp();

How could I launch the other app? I can't use Process since this will
be unmanaged code for DOS, either =(
Have you tried simply system("app.exe")? And are you sure that the other
application can run under DOS?

BTW: Unmanaged C++ is the only C++ there is, managed C++ or C++/CLR as
it is now known is a different language.

--
Erik Wikström
Oct 20 '08 #2
<te******@gmail.comwrote:
>I have a problem that I can't seem to solve:
I need to write an unmanaged C++ app that will run off of a floppy.
Basically, I will boot into DOS (from a floppy), and run my executable
from the floppy. The executable will crunch some data and then launch
another application.

How can I launch the other application?
You should probably ask in a DOS related ng, this isn't really a
C++ thing.

Anyway, the easiest way might be to use a .bat file that executes the
programs in turn.

(You will have to compile your app with an antique 16 bit compiler
if your exe is to run on bare dos. With modern C++ compilers,
"unmanaged code" is still 32 bits or more and needs some kind
of extender to run on DOS. But go to the DOS forums for details.)
Oct 20 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.