Game Development Community

Help T3D Wiiyurself, problems with Tchar

by Erick Lopez · in Torque 3D Professional · 01/16/2010 (9:09 pm) · 0 replies

Hello


I am a novice programmer who recently started working with T3D, I'm working on adapting Wiiyourself, for use with Torque but I have the following problem:

Error 15 error C2664: 'int _vsnprintf_s(char *,size_t,size_t,const char *,va_list)' : cannot convert parameter 1 from 'TCHAR [256]' to 'char *' ..\..\..\..\..\Engine\source\platformWin32\wiimote.cpp Wiimote DLL

Error 16 error C2440: 'initializing' : cannot convert from 'const char [5]' to 'const TCHAR *' ..\..\..\..\..\Engine\source\platformWin32\wiimote.cpp Wiimote DLL

In the proyect of T3D gives me this error in the file wiimote.cpp of wiiyourself, but I made a new project of Visual to test wiiyourself and I do not shed any error.

I was comparing the dependencies of the two projects, but is equal, and from what I understand seems to be a problem with the library Tchar.h or with unicode, but I have no idea what to do.

I was searching the forums but did not find much, I hope you can help me, please, thanks

PD: Sorry for my bad english :s

About the author

Recent Threads