new error on Draw.dsw

get the following error, actually i can change the source code to correct these errors, but i am afraid that the errors are caused by other facts, such as wrong configure and so on.

so if you have any idea about these errors, plz kindly reply, i will be very appreciated.
--------------------Configuration: TKDraw - Win32 Debug--------------------
Compiling...
Draw_VariableCommands.cxx
E:\OpenCASCADE5.2\ros\src\Draw\Draw_VariableCommands.cxx(691) : error C2664: 'void __thiscall Draw_Drawable3D::Name(char *const )' : cannot convert parameter 1 from 'const char *' to 'char *const '
Conversion loses qualifiers
E:\OpenCASCADE5.2\ros\src\Draw\Draw_VariableCommands.cxx(695) : error C2664: 'Tcl_TraceVar' : cannot convert parameter 4 from 'char *(void *,struct Tcl_Interp *,char *,char *,int)' to 'char *(__cdecl *)(void *,struct Tcl_Interp *,const char *,const
char *,int)'
None of the functions with this name in scope match the target type
E:\OpenCASCADE5.2\ros\src\Draw\Draw_VariableCommands.cxx(753) : error C2664: 'Tcl_VarTraceInfo' : cannot convert parameter 4 from 'char *(void *,struct Tcl_Interp *,char *,char *,int)' to 'char *(__cdecl *)(void *,struct Tcl_Interp *,const char *,co
nst char *,int)'
None of the functions with this name in scope match the target type
Draw_Window.cxx
E:\OpenCASCADE5.2\ros\src\Draw\Draw_Window.cxx(52) : error C2440: '=' : cannot convert from 'const char *' to 'char *'
Conversion loses qualifiers
Draw_Interpretor.cxx
E:\OpenCASCADE5.2\ros\src\Draw\Draw_Interpretor.cxx(46) : error C2440: 'initializing' : cannot convert from 'const char *' to 'char *const '
Conversion loses qualifiers
E:\OpenCASCADE5.2\ros\src\Draw\Draw_Interpretor.cxx(140) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (void *,struct Tcl_Interp *,int,char *[])' to 'int (__cdecl *)(void *,struct Tcl_Interp *,int,const char *[])'
None of the functions with this name in scope match the target type
E:\OpenCASCADE5.2\ros\src\Draw\Draw_Interpretor.cxx(166) : error C2664: 'Tcl_CreateCommand' : cannot convert parameter 3 from 'int (void *,struct Tcl_Interp *,int,char *[])' to 'int (__cdecl *)(void *,struct Tcl_Interp *,int,const char *[])'
None of the functions with this name in scope match the target type
Generating Code...
Error executing cl.exe.

TKDraw.dll - 7 error(s), 0 warning(s)

Fabio Napodano's picture

exactly the same problem here.

I've downloaded activeTCL as I've seen in your previous thread.

Did you manage to find a reason for this?

rs's picture

Hi!

First I'm using Linux with the gcc 3.3 compiler, but i get analogical errors. I've changed some files as followed:
Draw_Window.cxx:
line 51
promptCmd=(char*)Tcl_GetVar(...);
Draw_VariableCommands.cxx:
line 647
static char* tracevar(clientData CD, Tcl_Imterpreter *,const char*,const char*, Standard_Integer)
line 691
D->Name((char*)Tcl_SetVar(...));
Draw_Interpretor.cxx
line 26-28
static Standard_Integer CommandCmd
(ClientData clientData, Tcl_Interp *interp,
Standard_Integer argc,const char* argv[])
line 45
const char* cc= ...

I hope this helps...
CUrs