Library is getting loaded if I hardcode the path
h=LoadLibrary(C:\\dll\\name.dll);
However,library is NOT getting loaded...It returns NULL..Pls suggest to fix it.
<code>
HINSTANCE h = NULL;
char * pcDllPath = NULL;
wchar_t * pwcDllPath =NULL;
pcDllPath = (*env)->GetStringUTFChars(env, jDllPath, 0);
pwcDllPath =(wchar_t*)pcDllPath;
h=LoadLibrary(pwcDllPath); // Debugging shows that pwcDllPath prints the
// correct path
/************************************************** ********/
From java, I have tried by sending following strings:
C:\\dll\\name.dll
C:\\\\dll\\\\name.dll
</code>
Can you please help me out in this case?