I am using Visual C++ 8 (2005) Express Edition on a 32-bit platform. I am currently looking at source for PS2.
In PIUActionUtils.cpp, WideCharToMultiByte's third argument takes a WCHAR* (type-deffed as LPCWSTR) as its third parameter. The function is called four times and passed as ASUnicode* each time.
VC8EE would not implicitly cast, so to get it to compile I had to explicitly cast it:
multiByteLength = WideCharToMultiByte(CP_UTF8, 0, (LPCWSTR)unicodeStr, ...
Now everything obviously compiles and I briefly tested the Listener plug-in without any problems (whew!).
However, can someone more knowledgeable either suggest a better approach to fixing the problem or validate that the cast is ok?
Thanks for your time!
~ David
PS. FileInfoSearchReplace doesn't build with EE because it lacks MFC support (you can only add IA64 support with the Platform SDK). Just figured I'd take this on in case someone searches the forum later wondering why this one doesn't build in EE. (Specifically, NafxcWD.lib isn't included for 32-bit platforms ... the needed header afxwin.h is in the PSDK).
Subscribe to:
Post Comments
(Atom)
No comments:
Post a Comment