Game Development Community

Compile problems with latest head.. (reposted in right forum)

by Casey Weidner · in Torque Game Engine Advanced · 09/21/2006 (12:59 pm) · 3 replies

Ok one more time now that i got this in the right forum....

I seem to be finding some incompatabilities with the latest head i checked out today on 9-20 and the latest directx sdk. i just got a new system and just installed the platform sdk, direct sdk, and .net 2005 express.. now i didnt follow the setup guide on the site i just went from memory.. and every thing but a few of the d3d files compiled correctly. it was complaining of a uint16 cast to LPCWSTR in some of the function paramaters, but as far as i could tell just taking a quick look they were all stock d3d data types.

here is just one of the 9 i have left:

1>c:\tse\engine\platformwin32\win32winmgr.cpp(33) : error C2440: 'initializing' : cannot convert from 'UTF16 *' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

and this is the code that error points at:

WNDCLASSEX wc = { sizeof( WNDCLASSEX ), CS_CLASSDC, winProc, 0L, 0L,
GetModuleHandle(NULL), NULL, NULL, NULL, NULL,
buff, NULL };


this one happens to be the windows code, but to me it looks fine so i dont know. the majority of the errors are in the d3d. such as:

1>c:\tse\engine\gfx\d3d\gfxd3dtexturemanager.cpp(48) : error C2664: 'DXTraceW' : cannot convert parameter 4 from 'UTF16 [256]' to 'const WCHAR *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

and the code its pointing at

endif
DXTrace( __FILE__, __LINE__, hr, tehInfo, true );
}
#endif

any ideas?

Casey

#1
09/21/2006 (1:16 pm)
Looks like you forgot to set 'Treat wchar_t as Built-In Type' to No.

That's why I never try to set everything up without the guide, always end up forgetting one little detail.
#2
09/21/2006 (4:09 pm)
Hrm...ok.. i'll look into that
#3
09/21/2006 (6:08 pm)
Ok forget about my problem ;-) i was just too tired last night and loaded up the VC7 project files instead of the VC8 once i did that everything compiles just dandy!

Casey