Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get a return value from a FoxPro program
Message
De
30/04/1999 14:03:21
 
 
À
30/04/1999 09:03:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00213690
Message ID:
00214024
Vues:
30
>Hi Ed:
>Thanks for the reply. Would please tell me if this is the correct way of invoking a dll function
>
>PROCEDURE noDatabase
> MessageBox('Cannot open database at this time. Please try later')
> DECLARE ExitProcess IN WIN32API ;
> INTEGER uExitCode
> =ExitProcess(-1)
>ENDPROC
>

That should work fine.

>What does it mean to declare INTEGER uExitCode? Is that mean that integer
>is the return code of ExitProcess??

It means that the .DLL expects to receive a 32 bit integer from VFP (VFP will massage your parameter to that form) and the name is just an arbitrary string - I actually take the argument from the MSDN and use it there as a cue to what the DLL expects to receive, but the actual name uExitCode is arbitrary and unneeded.

>
>Thanks for your help
>
>regards
>Anil
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform