Compling issues DX10 related?
by 'Sidikian' · in Torque Game Engine Advanced · 03/13/2008 (5:37 pm) · 3 replies
Ugh I just read ealier that TGEA doesn't support DX10, but is it still possible to compile the engine atleast on a computer running Vista Home Premium and DX10, cause I have been trying to. I get 5 built, 1 failed which the 1 that failed seems to be the important one that actually makes the .exe anyhow here's some of the errors I get:
:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(29) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(30) : error C2440: 'initializing' : cannot convert from 'const wchar_t [16]' to 'UTF16 [256]'
There is no context in which this conversion is possible
c:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(123) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(147) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(161) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(1087) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\torque\tgea_1_0_3\engine\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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(1128) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(1137) : 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
this is alittle confusing to me, but seems like maybe I don't have something set up right b/c it seems as though it's trying to complie the code yet doesn't recongize the set up, i'm using mircro soft visual C++ 2005 express edition to complie and added the DX SDK and platform SDK to the include files spot, etc. also modifed the corewin_express.vsprops file to include user32.lib etc. and was using the vc7/TGEA SKD.sln project to build the TGEA. Anyway it seems possible to compile with Vista and DX10, but if this is my problem maybe someone could help me out and let me know so I don't keep trying in vain. And if this isn't my problem could someone plz point out my noobishness and tell me, "hey you aren't doing such and such right from what I can tell". Anyways thanks in advance and sorry for the long post.
:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(29) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(30) : error C2440: 'initializing' : cannot convert from 'const wchar_t [16]' to 'UTF16 [256]'
There is no context in which this conversion is possible
c:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(123) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(147) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(161) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(1087) : error C2665: 'convertUTF16toUTF8' : none of the 2 overloads could convert all the argument types
c:\torque\tgea_1_0_3\engine\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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(1128) : 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:\torque\tgea_1_0_3\engine\platformwin32\winwindow.cpp(1137) : 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
this is alittle confusing to me, but seems like maybe I don't have something set up right b/c it seems as though it's trying to complie the code yet doesn't recongize the set up, i'm using mircro soft visual C++ 2005 express edition to complie and added the DX SDK and platform SDK to the include files spot, etc. also modifed the corewin_express.vsprops file to include user32.lib etc. and was using the vc7/TGEA SKD.sln project to build the TGEA. Anyway it seems possible to compile with Vista and DX10, but if this is my problem maybe someone could help me out and let me know so I don't keep trying in vain. And if this isn't my problem could someone plz point out my noobishness and tell me, "hey you aren't doing such and such right from what I can tell". Anyways thanks in advance and sorry for the long post.
#2
03/13/2008 (6:17 pm)
Hmm maybe I found what they mean by it doesn't work with DX10, when I run the demo the interactive walk through works, but when i try the torque features and click on say 3dtoolset it says I'm missing a .dll *shrugs* any feed back would be apprecated.
#3
03/13/2008 (6:37 pm)
Vista installs DX9 as part of the base installation, but it is not the most recent version, 9.0C. In addition, Vista updaters do not update DX9 directly--you have to manually update to 9.0C. Once you've manually updated to 9.0C, you should be running fine, and the few remaining issues that we are aware of are handled in the very soon to be released next update to TGE-A.
Torque 3D Owner 'Sidikian'