Hi Viv. Thnaks for your reply
......But why don't you just expose the EXE as an OLE object ?
Yes..it its simpler ...its a long time since I did anything like this ......how would I go about doing this ??
Regards,
Gerard
>The returned integer is used as the error code. You probably need to use CreateProcess/GetLastError. Something like this:
>
http://www.foxite.com/archives/shellexecute-and-wait-for-completion-0000085681.htm>
>UPDATE: Or this:
http://support.microsoft.com/kb/191584>
>But why don't you just expose the EXE as an OLE object ?
>>Hi.
>>I have C# Console EXe whcih returns an integer in Main()
>>I want to Run the App from within Foxpro and get the Vlaue returned from the C# .exe
>>Anybody have any idea how this can be done?
>>My preference would be not to start ourputting the result to another file if its possibel to directly access the return value
>>
>>Tia
>>Gerard