1.4RC2 - trying not to use unicode and get unicode related error
by David Stewart · in Torque Game Engine · 09/11/2005 (12:07 am) · 4 replies
Note: Using Visual C++ 2005 Express Edition beta (also have the platform sdk installed)
I rem'd out the torque_unicode define in torqueconfig.h
and I made sure that the unicode define wasn't used.
Doing the above, I lowered the number of unicode related errors down to 6. (32 more show up when the unicode is defined)
Please let me know if these should there should be #ifdef's surrounding these statements or not.
It doesnt seem to me that these are needed if unicode is not to be used.
Error C2664: 'ToUnicode' : cannot convert parameter 4 from 'U16 [3]' to 'LPWSTR'
g:\torquecvs\torque\engine\platformwin32\winwindow.cc line 371
Error C2664: 'wcscmp' : cannot convert parameter 1 from 'const UTF16 *' to 'const wchar_t *'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 118
Error C2664: 'wcslen' : cannot convert parameter 1 from 'const UTF16 *' to 'const wchar_t *'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 168
Error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'const UTF16 *' to 'LPCWSTR'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 389
Error C2664: 'MultiByteToWideChar' : cannot convert parameter 5 from 'UTF16 *' to 'LPWSTR'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 401
Error C2664: 'GetTextExtentPoint32W' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR'
g:\torquecvs\torque\engine\platformwin32\winfont.cc line 320
I rem'd out the torque_unicode define in torqueconfig.h
and I made sure that the unicode define wasn't used.
Doing the above, I lowered the number of unicode related errors down to 6. (32 more show up when the unicode is defined)
Please let me know if these should there should be #ifdef's surrounding these statements or not.
It doesnt seem to me that these are needed if unicode is not to be used.
Error C2664: 'ToUnicode' : cannot convert parameter 4 from 'U16 [3]' to 'LPWSTR'
g:\torquecvs\torque\engine\platformwin32\winwindow.cc line 371
Error C2664: 'wcscmp' : cannot convert parameter 1 from 'const UTF16 *' to 'const wchar_t *'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 118
Error C2664: 'wcslen' : cannot convert parameter 1 from 'const UTF16 *' to 'const wchar_t *'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 168
Error C2664: 'WideCharToMultiByte' : cannot convert parameter 3 from 'const UTF16 *' to 'LPCWSTR'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 389
Error C2664: 'MultiByteToWideChar' : cannot convert parameter 5 from 'UTF16 *' to 'LPWSTR'
g:\torquecvs\torque\engine\platformwin32\winstrings.cc line 401
Error C2664: 'GetTextExtentPoint32W' : cannot convert parameter 2 from 'const UTF16 *' to 'LPCWSTR'
g:\torquecvs\torque\engine\platformwin32\winfont.cc line 320
#2
I thought that there may be some issues with vc++ 05.
Will play with it tomorrow, err today, what ever the day turns out to be after I get some sleep.
09/11/2005 (1:17 am)
Great stuff Tom! Thanks!I thought that there may be some issues with vc++ 05.
Will play with it tomorrow, err today, what ever the day turns out to be after I get some sleep.
#3
still had some issues with the resource file but I cheated and commented out everything except the icon settings.
Thanks Tom, Ben and everyone else.
might poke around with the video stuff later.
09/11/2005 (2:25 pm)
I got it working, despite that the platform sdk wasnt installed properly. (unicode intact)still had some issues with the resource file but I cheated and commented out everything except the icon settings.
Thanks Tom, Ben and everyone else.
might poke around with the video stuff later.
#4
T.
09/11/2005 (2:41 pm)
As far as the resource file goes, the only problem i had was resource.h was not in the project directory. The vc8 directory from my zip file has the resource.h in it, otherwise you can just copy it from the vc6 directory. I didnt hit any other issues with resources, but I guess your platSDK issues may have caused you problems there. It probably doesnt really matter that much at the end of the day, IIRC Torque only uses resources for the icon anyway.T.
Torque 3D Owner Tom Bampton
T.