I have no experience with dynamic link libraries. The examples my book provide use the “#using” keyword.
i.e #using <mscorlib.dll>
I have a .dll used for encrypting the username and password when loging into Yahoo Messenger. I copied the .dll to my project folder and used this code to link it.
Code:
#ifndef __login_h__
#define __login_h__
#using <YMSG12ENCRYPT.DLL>
#endif
Error:
Code:
fatal error C1113: #using failed on 'c:\yahoologinc\ymsg12encrypt.dll
This also don't work
Code:
HMODULE hMod = LoadLibrary("YMSG12ENCRYPT.DLL");
Error:
Code:
error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'const char [18]' to 'LPCWSTR'
I think the .dll was written in vb.
What am I missing on this?