>>I would first check to see if the DLL is in the FoxPath or
>>put in the path in the dll declaration:
>>
>>Example
>> DECLARE Integer OrgAPIInit IN C:\WINDOWS\SYSTEM\OrgAPI32
>
>Charles,
>
>Thanks for the reply! I have already tried this, and it gives me the same error, that is, "Cannot load 32-bit DLL orgapi32.dll". Can I get this error if I incorrectly specify the DLL function parameters? If a DLL is accessible in C++ or Visual Basic, does this mean I can access the DLL in Visual FoxPro too?
There are very few dll files that can't be used in
Visual Foxpro that can be used in Visual Basic.
I have had this error before,but I can't remember what I did
do get rid of it. The only thing is I can think of is to change
INTEGER lpfnMsgCallback to String @lpfnMsgCallback and pass it
as 0. I am pretty sure that VFP can't handle Call Back functions.
I would then look at VB examples to see what types they are sending it.
Charles
Charles
"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers