Darhuuk
23rd March 2008, 15:19
Hi,
I've been searching the net for the past 2 hours for a solution to the following problem, but I can't find anything. I'm trying to compile a project which requires WCHAR types (wrapper for Winamp DLLs). I tried including windows.h, wchar.h, tchar.h, stdlib.h, ... in my project, but I keep getting this error (I get multiple of these errors):
winamp\winamp.cpp:581: error: cannot convert `char*' to `const WCHAR*' for argument `1' to `HINSTANCE__* LoadLibraryW(const WCHAR*)'
Has anyone got any idea on how to fix this? I read some solutions for Visual Studio, but I'm using MinGw, so no help there.
Best regards, Darhuuk
I've been searching the net for the past 2 hours for a solution to the following problem, but I can't find anything. I'm trying to compile a project which requires WCHAR types (wrapper for Winamp DLLs). I tried including windows.h, wchar.h, tchar.h, stdlib.h, ... in my project, but I keep getting this error (I get multiple of these errors):
winamp\winamp.cpp:581: error: cannot convert `char*' to `const WCHAR*' for argument `1' to `HINSTANCE__* LoadLibraryW(const WCHAR*)'
Has anyone got any idea on how to fix this? I read some solutions for Visual Studio, but I'm using MinGw, so no help there.
Best regards, Darhuuk