I wrote a dll in visual basic 6.0.
I want to call those functions in the dll from pb6.5
I tried putting the declarations as global and local(not at the same time)
FUNCTION LONG ValidateUserName(STRING strUserName,REF STRING strErrorMsg) LIBRARY "c:\foldername\mydll.dll"
When I try and call this function I get an error:
'Error calling external function <functionname> at line ## in function <functionname> of object <myobject>'
Do I need to register this dll?
The .pbl(and dll) file that calls that dll is in one folder with mydll.dll, but the .exe file is in another. Does that matter?
Thanks
I want to call those functions in the dll from pb6.5
I tried putting the declarations as global and local(not at the same time)
FUNCTION LONG ValidateUserName(STRING strUserName,REF STRING strErrorMsg) LIBRARY "c:\foldername\mydll.dll"
When I try and call this function I get an error:
'Error calling external function <functionname> at line ## in function <functionname> of object <myobject>'
Do I need to register this dll?
The .pbl(and dll) file that calls that dll is in one folder with mydll.dll, but the .exe file is in another. Does that matter?
Thanks