I use xfrx and I have that dll on the network and that is the error message that comes up. I moved the api code into a method of the form and now call it from the click event of a command button rather than have it in the click event and it now works.
I am not sure what triggered the error but it happened on both my development computer and the computers at my client.
I saw some code Hilmar offered up last year and he was running it as a function so I decided to try it in a method and voila it worked. Go figure. Interesting I have been running that code for the past 3 years with no problems.
As usual Thanks. As I always tell my developer friends - thank God for Sergey and UT.
Gaylen
>Hi Gaylen,
>
>The hndlib.dll is a part of XFRX. Are you sure that you are not getting error earlier in XFRX?
>
>>I get a "Cannot load 32-bit DLL hndlib.dll" when I use the following code if I call the form with the code one form but not another form. The only difference is that the form that creates the problem has a pageframe on it and the other does not.
>>
>>
>>
>> DECLARE Integer FindWindow In win32api String cnull, String cwinname
>> DECLARE Integer ShellExecute In shell32.Dll ;
>> integer nWinHandle, ;
>> string cOperation, ;
>> string cFilename, ;
>> string cParameters, ;
>> string cDirectory, ;
>> integer nShowWindow
>> =ShellExecute(FindWindow(0,_Screen.Caption), "open",lcfilename,"","",1)
>>
>>
>>
>>Anyone have any idea what is happening or a better way to open a pdf from within a form?
>>
>>