I want to load the dll base address as shown in the code below.
HMODULE g_hDll;
g_hDll = LoadLibraryW(_T(“4FM.dll”));`
When I run it, I get the following error message:
C:\Qt\UPI_ProIII_062414085021\fpga_lib\sipif.cpp:106: error: C2664: ‘HMODULE LoadLibraryW(LPCWSTR)’ : cannot convert argument 1 from ‘const char [8]’ to ‘LPCWSTR’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
I also tried Qlibrary but I'm not able to load on hmodule.
Same code works fine when I just run it with visual studio 2010.