Original Post
I'm trying to compile the stock 1.4 build of torque, and i'm getting the following errors (same or similar error, 39 times in a row) Here's the first few of the 39 almost identical errors. ..\engine\platformWin32\winWindow.cc(33) : error C2440: 'initializing' : cannot convert from 'const wchar_t [22]' to 'const UTF16 *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\engine\platformWin32\winWindow.cc(34) : error C2440: 'initializing' : cannot convert from 'const wchar_t [16]' to 'UTF16 [256]' There is no context in which this conversion is possible ..\engine\platformWin32\winWindow.cc(109) : error C2664: 'CreateMutexW' : cannot convert parameter 3 from 'UTF16 [512]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\engine\platformWin32\winWindow.cc(134) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'UTF16 [1024]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\engine\platformWin32\winWindow.cc(148) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'UTF16 [1024]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\engine\platformWin32\winWindow.cc(162) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'UTF16 [1024]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\engine\platformWin32\winWindow.cc(372) : error C2664: 'ToUnicode' : cannot convert parameter 4 from 'U16 [3]' to 'LPWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast ..\engine\platformWin32\winWindow.cc(877) : error C2440: '=' : cannot convert from 'const UTF16 *' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast Although i'm an absolute newb to VC++ (my history with C ended in 1997 with borland C++ 4.0), i think this is because the torque source is written for VC7, and VC2005 is VC8. I could be TOTALLY out of whack here though. Is there a simple way to rewrite these lines?