Original Post
Ok, I'm making a project, and all of it has to be UNICODE, except for one header, and I get these errors: I've tried doing #undef UNICODE and #undef _UNICODE. But I don't know how to fix it. That didnt solve the problem. Here are the lines of code:
c:\documents and settings\kyle\desktop\xds\SSCleaner.h(40) : error C2664: 'GetModuleHandleW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\kyle\desktop\xds\SSCleaner.h(51) : error C2664: 'lstrcmpiW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
(HMODULE hModule, char *szDllName, char *szFunctionName, DWORD pNewFunction)
(Line 40): if(!(pOldFunction = GetProcAddress((HMODULE)GetModuleHandle(szDllName), szFunctionName)))
(Line 51): if(!lstrcmpi(szModuleName, szDllName))