Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File 'shellexecute.prg' does not exist
Message
 
 
To
03/11/2022 16:58:56
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01685206
Message ID:
01685225
Views:
37
Do, you clear DLLS before every call?

>Dimitry
>
>>A follow up question. If I change my code to the one you suggest, are you saying that the call to
>>DECLARE INTEGER, inside the FUNCTION ShellExecute() will not produce anything, if it is called the second time? How would I see it in the Debugger?
>
>
>* we assume no DLL is declared yet
>* next line calls the function, the function declares and call the dll
>ShellExecute( ....
>* next line calls the the dll directly, because dll has precedence over function
>ShellExecute( ....
>
>* oops, a fool clear the dlll
>clear dlls ShellExecute
>
>* next line calls the function again, since the dll is not longer declared
>ShellExecute( ....
>
>*repeat until false
>
>FUNCTION  ShellExecute (tHWND, tlpVerb, tlpFile, tlpParameters, tlpDirectory, tnShowCmd)
>
> DECLARE INTEGER ShellExecute IN "Shell32.dll" ;
>    INTEGER HWND, ;
>    STRING lpVerb, ;
>    STRING lpFile, ;
>    STRING lpParameters, ;
>    STRING lpDirectory, ;
>    LONG nShowCmd
>
> RETURN  ShellExecute (tHWND, tlpVerb, tlpFile, tlpParameters, tlpDirectory, tnShowCmd )
>Endfunc
>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform