Sergey,
what would I do without you ;-)
I downloaded the API_APPRUN class and have implemented it. Ghostscript starts as a synchronous process and it all seems to work fine.
Regards,
Ron
>Any return value greater that 32 indicates success. It cannot be a program's return code because ShellExecute launches a program and doesn't wait for it to complete. For synchronous execution take a look at
API_APPRUN in .VCX form File #
9477.
>
>>A VFP COM-component fires GhostScript. This all works fine but I now want to determine what the returnvalue means.
>>
>>This is the command:
>>liRetVal = ShellExecute(0, "open", lcProg, lcParms, cGSFolder, 2)
>>
>>On my machine this command returns 42. What does this mean? Is this good or bad? Is there a list of the ShellExecute command. I have Googled and have found some values but 42 is not among them. Is 42 returned by GhostScript?
>>
>>