Anil,
You can make your VFP app a COM object and call a method from C++ and use the return value of the method.
>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.