Error Loading DLL (urgent please)
Error Loading DLL (urgent please)
Hi,
I have a win32 dll (dev in VC 6) and a client exe (dev in VB 6).
I am calling a function myfunc() into dll from my client application. At the calling line I get error runtime error 48, file not found bent.dll (where bent.dll is the name of the dll myfunc() is exposed from)
I have tried many combinations of putting client application and dll in one directory/system32 directory but invain.
this was working until this morning when I terminate the (vc) debugger and modify some code in the function.
Please see the code chunks and let me know if am missing something...thanks,
code chunks...
vb code:
declaration:
Public Declare Function myfunc Lib "bent.dll" (ByVal c As Long) As Long
call: myfunc 2
vc code:
EXPORT int myfunc(long c);
EXPORT int myfunc(long c)
{
return 1;
}