Error Compiling Clean Install...
by Nicolai Dutka · in Torque Game Builder · 05/01/2008 (10:42 am) · 26 replies
I just finished installing 1.7.2 Pro and Visual Studio 2008. I opened VS2008 and then opened: engine/compilers/VisualStudio.net/TorqueGameBuilder.vcproj
I don't do anything to any of the files, right click on TorqueGameBuilder in my Solution Explorer and choose 'Build'.
I would have thought this would work flawlessly the first time since it happens to be a completely fresh install of TGB 1.7.2, but alas, I had problems...
I am trying to make a Debug version of my executable so I can start programming the networking.
Errors:
I don't do anything to any of the files, right click on TorqueGameBuilder in my Solution Explorer and choose 'Build'.
I would have thought this would work flawlessly the first time since it happens to be a completely fresh install of TGB 1.7.2, but alas, I had problems...
I am trying to make a Debug version of my executable so I can start programming the networking.
Errors:
win32MsgBox.cpp
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\nativedialogs\win32msgbox.cpp(76) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
win32DirectoryResolver.cpp
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\nativedialogs\win32directoryresolver.cpp(74) : error C2664: 'PathAddExtensionW' : cannot convert parameter 1 from 'UTF16 [260]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\nativedialogs\win32directoryresolver.cpp(78) : error C2664: 'IPersistFile::Load' : cannot convert parameter 1 from 'UTF16 [260]' to 'LPCOLESTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\nativedialogs\win32directoryresolver.cpp(93) : error C2664: 'IShellLinkW::GetPath' : cannot convert parameter 1 from 'UTF16 [260]' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\nativedialogs\win32directoryresolver.cpp(97) : error C2664: 'PathIsDirectoryW' : cannot convert parameter 1 from 'UTF16 [260]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
fileDialog.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\nativedialogs\filedialog.cc(91) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
#2
05/01/2008 (10:44 am)
winVideo.cc
winVFS.cc
winV2Video.cc
winUser.cc
winTLS.cc
winTime.cc
winStrings.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winstrings.cc(118) : error C2664: 'wcscmp' : cannot convert parameter 1 from 'const UTF16 *' to 'const wchar_t *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winstrings.cc(168) : error C2664: 'wcslen' : cannot convert parameter 1 from 'const UTF16 *' to 'const wchar_t *'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winstrings.cc(394) : error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'const UTF16 *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winstrings.cc(406) : error C2664: 'MultiByteToWideChar' : cannot convert parameter 5 from 'UTF16 *' to 'LPWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
winSemaphore.cc
winRedbook.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winredbook.cc(130) : error C2440: '=' : cannot convert from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
winProcessControl.cc
winOpenAL.cc
winOGLVideo.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winoglvideo.cc(858) : error C2065: 'AW_BLEND' : undeclared identifier
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winoglvideo.cc(858) : error C3861: 'AnimateWindow': identifier not found
Generating Code...
Compiling...
winNet.cc
winMemory.cc
winMath_ASM.cc
winMath.cc
winInput.cc
winGLSpecial.cc
winGL.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wingl.cc(352) : error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\wingl.cc(363) : error C2664: 'LoadLibraryW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
winFont.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfont.cc(87) : error C2664: 'CreateFontW' : cannot convert parameter 14 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfont.cc(169) : error C2664: 'GetTextExtentPoint32W' : cannot convert parameter 2 from 'UTF16 *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfont.cc(195) : error C2665: 'dStrlen' : none of the 3 overloads could convert all the argument types
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platform\platform.h(499): could be 'dsize_t dStrlen(const char *)'
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\core\unicode.h(94): or 'const U32 dStrlen(const UTF16 *)'
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\core\unicode.h(95): or 'const U32 dStrlen(const UTF32 *)'
while trying to match the argument list '(WCHAR [32])'
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfont.cc(197) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\core\unicode.h(69): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)'
while trying to match the argument list '(WCHAR [32], FrameTemp, const U32)'
with
[
T=char
]
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfont.cc(206) : error C2664: 'EnumFontFamiliesW' : cannot convert parameter 2 from 'UTF16 *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfont.cc(243) : error C2664: 'CreateFontW' : cannot convert parameter 14 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfont.cc(362) : error C2664: 'GetTextExtentPoint32W' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
#3
05/01/2008 (10:44 am)
winFileio.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(138) : error C2664: 'CopyFileW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(203) : error C2664: 'CopyFileW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(285) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'UTF16 [2048]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(294) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'UTF16 [2048]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(303) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'UTF16 [2048]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(312) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'UTF16 [2048]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(598) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(606) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\core\unicode.h(69): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)'
while trying to match the argument list '(WCHAR [260], UTF8 *, unsigned int)'
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(670) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(703) : error C2664: 'CreateDirectoryW' : cannot convert parameter 1 from 'UTF16 [1024]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(852) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winfileio.cc(914) : error C2664: 'FindFirstFileW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Implement UNICODE support for osGetTemporaryDirectory [01/23/2007 tom]
winExec.cc
Implement UNICODE support for ExecuteThread [12/14/2006 tom]
winDirectInput.cc
winDInputDevice.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\windinputdevice.cc(566) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\core\unicode.h(69): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)'
while trying to match the argument list '(WCHAR [260], UTF8 [512], unsigned int)'
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\windinputdevice.cc(578) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\core\unicode.h(69): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)'
while trying to match the argument list '(WCHAR [260], UTF8 [512], unsigned int)'
winD3DVideo.cc
winCPUInfo.cc
winConsole.cc
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winconsole.cc(45) : error C2664: 'SetConsoleTitleW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
winAsmBlit.cc
cardProfile.cpp
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\cardprofile.cpp(14) : error C3861: 'EnumDisplayDevices': identifier not found
c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\cardprofile.cpp(14) : fatal error C1903: unable to recover from previous error(s); stopping compilation
#4
05/01/2008 (10:45 am)
That's all. Sorry for all the posts. I wasn't sure how else to do it...
#5
05/01/2008 (10:49 am)
Not sure if it makes a difference, but I am using Windows Vista Ultimate 64.
#6
05/01/2008 (10:49 am)
See Problems compiling TGB 1.7.2, specifically the installation of the SDK, and converting the project file.
#7
05/01/2008 (10:51 am)
You also should make sure you compile the entire solution, not just one project, at least the first time through.
#8
It looks like that other person tried installing various software until he got something working.... He posts several different programs and the last one he mentions is 1.29gb, but he also mentions compiling with VS2008. So I need both the Server SDK thing from Microsoft AND VS2008? That seems like such an awfully horrendous waste.... 1.29gb download so I can compile? Can't someone just provide a precompiled DEBUG executable for me?
I don't understand what to do with that previous post and honestly don't see anything that directly addresses the issue such as, "Install this, and try again". It's all just a bunch of "i tried this and this and this" but none of it says "this is the one that worked".
I am not a C++ programmer. I can't figure this stuff out....
05/01/2008 (11:03 am)
I read through that post and still have no idea what to do....It looks like that other person tried installing various software until he got something working.... He posts several different programs and the last one he mentions is 1.29gb, but he also mentions compiling with VS2008. So I need both the Server SDK thing from Microsoft AND VS2008? That seems like such an awfully horrendous waste.... 1.29gb download so I can compile? Can't someone just provide a precompiled DEBUG executable for me?
I don't understand what to do with that previous post and honestly don't see anything that directly addresses the issue such as, "Install this, and try again". It's all just a bunch of "i tried this and this and this" but none of it says "this is the one that worked".
I am not a C++ programmer. I can't figure this stuff out....
#9
If you want to run a debug build, I'm assuming that you want to have the source code to use that build for debugging--and the source code depends on the Microsoft Platform SDK to operate.
The specific post you should look at:
from Todd in the thread linked above.
05/01/2008 (11:09 am)
Compiling a software SDK such as Torque (in all flavors) requires a development environment configured for developers--specifically, having the Microsoft provided libraries and SDK's that are used when making applications for Windows.If you want to run a debug build, I'm assuming that you want to have the source code to use that build for debugging--and the source code depends on the Microsoft Platform SDK to operate.
The specific post you should look at:
Quote:
Well after talking with David we seem to have this sorted out.
I installed Microsoft Windows Server 2003 R2 Platform SDK Web Install located here.
Then using the 2005 project converted to 2008 it compiled perfectly.
You also need to remember to put the include, lib, etc directories before the other SDK's in the settings.
from Todd in the thread linked above.
#10
I am doing the "Microsoft Windows Server 2003 R2 Platform SDK Web Install" as noted, but should I have VS2008 installed before or after that?
05/01/2008 (11:12 am)
The only reason I need a debug build is so that I can run 2 instances of my game on one machine at the same time so I can write the networking script code.I am doing the "Microsoft Windows Server 2003 R2 Platform SDK Web Install" as noted, but should I have VS2008 installed before or after that?
#11
If so, then just install the SDK, and configure VS2008 with the include, lib and other directories.
05/01/2008 (11:15 am)
Your first post says that you already have VS2008 installed, and are using it?If so, then just install the SDK, and configure VS2008 with the include, lib and other directories.
#12
(This is gonna take a long time I think.... 1.2gb to download...)
05/01/2008 (11:17 am)
Ok, yes I have VS2008 installed already and using it. That's what is giving me the errors. I am doing the web install now. How would I cofigure it to include the "lib and other directories"?(This is gonna take a long time I think.... 1.2gb to download...)
#13
I noticed something about "configure it to include the lib and other directories"... How would I do that exactly?
05/01/2008 (4:18 pm)
I installed the Windows Server SDK and tried again and still get all the exact same errors.I noticed something about "configure it to include the lib and other directories"... How would I do that exactly?
#14
I still don't understand why it won't compile "straight out of the box". I've been compiling TGE for the past 9 months with no problems like this.
05/01/2008 (4:23 pm)
I noticed I am actually getting MORE errors now than before.... It says 81 errors whereas before I had only 66 errors...I still don't understand why it won't compile "straight out of the box". I've been compiling TGE for the past 9 months with no problems like this.
#15
1. I was opening the ".net" version of TGB. I switched to the 2005 version and converted to 2008 as noted above and am getting FAR LESS ERRORS!
2. Still getting a handful of errors. Here they are:
05/01/2008 (4:30 pm)
Oops! But still not working!1. I was opening the ".net" version of TGB. I switched to the 2005 version and converted to 2008 as noted above and am getting FAR LESS ERRORS!
2. Still getting a handful of errors. Here they are:
popupMenuWin32.cc c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\menus\popupmenuwin32.cc(216) : error C2065: 'MIIM_STRING' : undeclared identifier c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\menus\popupmenuwin32.cc(293) : error C2065: 'MIIM_STRING' : undeclared identifier winOGLVideo.cc c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winoglvideo.cc(858) : error C2065: 'AW_BLEND' : undeclared identifier c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winoglvideo.cc(858) : error C3861: 'AnimateWindow': identifier not found cardProfile.cpp c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\cardprofile.cpp(14) : error C3861: 'EnumDisplayDevices': identifier not found c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\cardprofile.cpp(14) : fatal error C1903: unable to recover from previous error(s); stopping compilation BSCMAKE: error BK1506 : cannot open file '..\..\Link\Debug.Win32\TorqueGameBuilder\cardProfile.sbr': No such file or directory
#16
Melv.
05/02/2008 (12:19 pm)
For the "MIIM_STRING" issue go into "platformWin32.h" and search for "_WIN32_WINNT". Change it to equal "0x0501" and recompile.Melv.
#17
#define _WIN32_WINNT 0x0400
To:
#define _WIN32_WINNT 0x0501
And everything is building! It fixed 6/7 of my last set of errors. The final error was fixed by:
1. Right-Click TGBGame choose "properties".
2. On the left under General Properties, click on "Linker".
3. On the right/middle, look for "Additional Library Directories". It already has some values.
4. Click on the the values associated with that and a browse button on the far right shows up. (Plain square with "..." on it)
5. Browse for "engine/lib" and choose that folder.
6. Push apply/ok on all windows.
That adds the 'lib' folder to the project.
WOOT! Build successful!
Thanks everyone!
A special thanks to Stephen Zepp! You've been helping me with a number of different posts I've made in the past few weeks. I don't think I could've completed this project without the help of you and these forums.
05/02/2008 (12:50 pm)
Changed the following:#define _WIN32_WINNT 0x0400
To:
#define _WIN32_WINNT 0x0501
And everything is building! It fixed 6/7 of my last set of errors. The final error was fixed by:
1. Right-Click TGBGame choose "properties".
2. On the left under General Properties, click on "Linker".
3. On the right/middle, look for "Additional Library Directories". It already has some values.
4. Click on the the values associated with that and a browse button on the far right shows up. (Plain square with "..." on it)
5. Browse for "engine/lib" and choose that folder.
6. Push apply/ok on all windows.
That adds the 'lib' folder to the project.
WOOT! Build successful!
Thanks everyone!
A special thanks to Stephen Zepp! You've been helping me with a number of different posts I've made in the past few weeks. I don't think I could've completed this project without the help of you and these forums.
#19
05/02/2008 (12:56 pm)
Actually, that was really easy, I just don't know a whole lot about C++. I am well versed in script, specifically with TorqueScript, so I think the next part of my project should be fairly easy as well, just time consuming. It's ok though, I have until June 21 to network a top-down shooter. It'll be my first time making a fully networked game, but I have done some network code in C++ and studied up on Torque networking code, so I am feeling really confident.
Torque 3D Owner Nicolai Dutka
popupMenuWin32.cc c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\menus\popupmenuwin32.cc(216) : error C2065: 'MIIM_STRING' : undeclared identifier c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\menus\popupmenuwin32.cc(293) : error C2065: 'MIIM_STRING' : undeclared identifier winWindow.cc c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(38) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(39) : error C2440: 'initializing' : cannot convert from 'const wchar_t [16]' to 'UTF16 [256]' There is no context in which this conversion is possible c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(146) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(199) : error C2664: 'CreateProcessW' : cannot convert parameter 1 from 'UTF16 [512]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(246) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(282) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(299) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(316) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(537) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1268) : 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 c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1329) : error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1763) : error C2664: 'SetWindowTextW' : cannot convert parameter 2 from 'UTF16 [256]' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1895) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\core\unicode.h(69): could be 'const U32 convertUTF16toUTF8(const UTF16 *,UTF8 *,U32)' while trying to match the argument list '(wchar_t [512], char [512], int)' c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1933) : error C2664: 'CreateProcessW' : cannot convert parameter 2 from 'UTF16 [1024]' to 'LPWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1942) : error C2440: 'initializing' : cannot convert from 'const wchar_t [28]' to 'const UTF16 *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1951) : error C2664: 'RegOpenKeyExW' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1974) : error C2664: 'RegOpenKeyExW' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast c:\program files (x86)\garagegames\torquegamebuilder-1.7.2\engine\source\platformwin32\winwindow.cc(1996) : error C2664: 'RegOpenKeyExW' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast