spawn etc from win16 (urk!)

Joshua Graham Pitcher ((no email))
Mon, 19 Jun 1995 21:02:25 +1000 (EST)

G'Day All,

I'm in a bit of a jam at the moment. I want to execute a DOS program
from windows (ie inside my program). I am using Borland C++ 4.5.
However the manual specifically states that exec.. spawn.. and system
will not work under win16 (ie the 16-bit windows api). Can anyone help me
out??

The windows program that I have written is an interface to a DSP board
inside the PC. It allows me to control certain parameters of the s/w that
is running on the DSP board. However at the moment I have to exec a batch
file "loaddsp.bat" from file manager to download the software onto the DSP
board before running the windows program. What I want to do is to have a
menu option, for example "Program DSP", do call this batch file for me.
However it seems that Borland C++ wont let me do this.

So, if anyone has ant ideas on how to fix this, I would really appreciate it.
It is not absolutely critical, but it would make the software look a bit more
professional.

Thanks in advance,

Josh.

P.S. I dont want to sound cynical, but why don't these functions work under
win16 when they work under DOS, UNIX, win32 and OS/2?? It's sort of
pissing me off a bit.

catchyaaaa...