472,811 Members | 1,946 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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
2 1638
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Greg Wilson | last post by:
I need to launch an app from inside my VB.NET app as a specific user. I do (VB.NET pseudo code) Dim moImpersonationContext As WindowsImpersonationContext = WindowsIdentityIwant.impersonate()...
1
by: Greg Wilson | last post by:
I need to launch an app from inside my VB.NET app as a specific user. I do (VB.NET pseudo code) Dim moImpersonationContext As WindowsImpersonationContext = WindowsIdentityIwant.impersonate()...
7
by: dhussong | last post by:
I have created a Setup and Deployment project in Visual Studio.NET 2003. After my installation has completed running I'd like to launch the EXE that I just installed. I've found how to launch the...
1
by: John A. Bailo | last post by:
Excuse the novice aspects of this question, but: What techniques are available to me for launching one c# application ( console .exe) from another? For example, I know there is the Process and...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?

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.