I have a third party 16-bit/DOS application which runs fine in the DOS console under Win98. When using the system() or ShellExecute() to execute the third party app in my 32-bit program, an error "This program has performed an illegal operation and will be shutdown" occurred.

How should I make such a call for a 16-bit or DOS app?

Also can Visual Studio create a real DOS project?