Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting Return Value from c# exe
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01597172
Message ID:
01597177
Vues:
53
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform