I am creating a simple project with VC++ win32 console application and trying to load a dll file using function “LoadLibrary("D:\SRV\RFIDReader.dll");” and I am able load it this way. But when I try to do the same thing in a Smart Device application its giving me an error while compilation. Error says: “error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'const char [22]' to 'LPCWSTR'”.
The solutions i have already tried are as follows: 1. On using "L" or "_T" or "TEXT" before the String (path of the dll), it compiles but on running the app, LoadLibrary returns NULL. 2. Changing the Character Set in Properties to "Use Multi Byte Character Set" also didnt help.
I am using Visual Studio 2008 and Windows Mobile SDK 6.0. Any idea regarding this issue? I am really new to both VC++ and Windows Mobile.
Thanks in advance