i have a vb exe which has been running fine. but the requirements now dictate that this exe be run from a VC++ 5.0 exe. i issued a system command to run the VB app from Vc and it runs fine.

But the Vc code expects an success code but VB exe always returns 0.

How can i return an error code of say 7 from the vb exe to the vc exe??


thanks in advance