I’m a beginner and try to use the FrontPanel dll with my Qt program in VS2008.
I added “okFrontPanelDLL.h” and "okFrontPanelDLL.cpp on my project, include the .h on my other class and put the okFrontPanel.dll on the main folder.
But when i first try to compile i get the error : '‘LoadLibraryW’ : cannot convert parameter 1 from ‘char *’ to ‘LPCWSTR’
Corresponding to the line :
return((DLL *) LoadLibrary(libname));
I already tryed to change the “Use Unicode Character Set” to “Use Multi-byte Character Set” but nothing change. Anyway i would like to use unicode character in my future application so i would like to resolve the problem instead of bypass it.
I also tryed to put (LPCWSTR) before the libname. Actually it seems to correct the error cause the code compile, but the dll isn’t load, so i feel that this trick didn’t really fix the problem.
Hope for your help:D