>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