Please help! Error in compile in winWindow.cc in Visual C++ 2008 Express Edition
by Dane McGreevy · in Torque Game Engine · 03/15/2009 (7:22 pm) · 0 replies
Hi all,
I ran into the following error during compiling "winWindow.cc"
1>Compiling...
1>winWindow.cc
1>..\engine\platformWin32\winWindow.cc(1580) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *'
Actually I have already modified the Project Configuration by setting "Treat wchar_t as Built-in type" to "No" in "Configuration Properties->C/C++->Language".
Can anybody give me a tip how to fix the problem? Thanks a lot!
The source code is
#ifdef UNICODE
char *p = dStrstr((const char *)utf8WebKey, "%1");
#else
char *p = strstr( (const char *) sWebKey , "%1"); // where the error occured
#endif
if (p) *p = 0;
}
I ran into the following error during compiling "winWindow.cc"
1>Compiling...
1>winWindow.cc
1>..\engine\platformWin32\winWindow.cc(1580) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *'
Actually I have already modified the Project Configuration by setting "Treat wchar_t as Built-in type" to "No" in "Configuration Properties->C/C++->Language".
Can anybody give me a tip how to fix the problem? Thanks a lot!
The source code is
#ifdef UNICODE
char *p = dStrstr((const char *)utf8WebKey, "%1");
#else
char *p = strstr( (const char *) sWebKey , "%1"); // where the error occured
#endif
if (p) *p = 0;
}