Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting Return Value from c# exe
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01597172
Message ID:
01597177
Views:
52
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform