Re: User win32 dll
Yes the function is exported. Please confirm if this is correct way of doing
it.
typedef int (*MYPROC)(unsigned int);
HINSTANCE hinstLib;
MYPROC ProcAdd;
unsigned int retVal = 0;
hinstLib = LoadLibrary("Server_dll.dll");
if(hinstLib != NULL)
{
ProcAdd = (MYPROC) GetProcAddress(hinstLib,
TEXT("MyDllFunction"));
if (NULL != ProcAdd)
{
_asm
{
call ProcAdd
mov retVal, eax
}
}
FreeLibrary(hinstLib);
}
If I'm right, will I get the return value of that Dll function in retVal
variable.
Regards
Usman
"Ajay Kalra" <ajaykalra@yahoo.com> wrote in message
news:1156512678.804024.137620@m79g2000cwm.googlegroups.com...
MyDllFunction(unsinged int)
In my MFC application, I've added a link to its lib file and also
included
its header file in my MFC app Cpp file. When I call this function, I get
a
linking error saying that
unresolved external symbol "struct hdr * __cdecl MyDllFunction(unsigned
int)
Where am I going wrong??
Is this function exported? You can use Depends.exe to see what all
functions from this dll are exported.
---
Ajay