Re: Launching Another Executable from my Program (Borland C++)
- From: pete@xxxxxxxxxxxxxxxxxx
- Date: Tue, 14 Oct 2008 04:26:34 +0000 (UTC)
In article <bf961100-b674-40fe-8ec9-e64d52489454@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
davidmurray1@xxxxxxxxx writes:
I have a C++ DOS app that I made in Borland... I want to launch a
console application (with command line arguments) from my program
(presumably using ShellExecute), but when I make the call, Borland
says it can't find the necessary DLLs. I pulled the DLLs from my XP
machine, but it didn't fix the problem.
Is there a quick and dirty way to launch a console application (with
command line args) from a DOS C++ app?
I don't want to spend a lot of time on something so rudimentary
because I am under deadline. I've currently switched my focus to
another part of the program and left this on hold.
for example: the call from cmd prompt (once in the correct directory)
would be: LWhiz example.jpg
LWhiz is an image viewing application that will open the jpg
specified... this is what i want to do from my application.
You don't say which version of BCC you're using, but if it's for
DOS it shouldn't matter too much. Have you tried one of the many
execXX() functions? Or even system()? For example something
like this ought to work:
system ("cmd.exe /c LWhiz example.jpg");
Pete
--
"We have not inherited the earth from our ancestors,
we have borrowed it from our descendants."
.
- Prev by Date: Launching Another Executable from my Program (Borland C++)
- Next by Date: Re: Launching Another Executable from my Program (Borland C++)
- Previous by thread: Re: Launching Another Executable from my Program (Borland C++)
- Next by thread: writing bootstrap code to USB MBR
- Index(es):
Relevant Pages
|