Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RETURN Value from an EXE?
Message
De
20/11/2003 03:04:17
 
 
À
19/11/2003 16:48:12
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00851648
Message ID:
00851739
Vues:
8
>A Java programmer needs to call a VFP program that is compile as an EXE. Let's say that value returned from the EXE process is a numeric 6.
>
>How can the Java program read the return value from the call to the FoxPro EXE?

There should be several ways to do this. One way would be to write the result to a file (either ASCII text, or maybe a Fox2x table if Java can read them) which the Java app then reads.

Ed Rauh's Exiting Visual FoxPro returning an error level FAQ #7767 can set an OS-level errorlevel as VFP exits, this is handy for batch files but maybe less so for other environments. If the Java app is calling a VFP process on another computer this won't work.

Is there any way the Java app could call the VFP process as a COM object? This would probably be the most elegant. Other than that there may be other interprocess communication methods you could try. I seem to recall George Tasker working with VFP and DDE, which is now a rather dated IPC method in Windows but might be supported in Java.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform