>Hello:
>I am invoking a Visual FoxPro program from a C++ application. I am basically creating a process to invoke the Visual FoxPro program.
>
>How can I send return code from VFP application to the C++ application. I like to inform C++ application of any failure in the VFP application.
>
Rather than using a QUIT statement to terminate VFP, you need to shut down by calling the Win32 API ExitProces():
DECLARE ExitProcess IN WIN32API ;
INTEGER uExitCode
=ExitProcess(<i>numeric exit code</i>)
>Any help is appreciated.
>
>Thanks in advance.
>
>regards
>Anil