| Anders Eriksson 2005-09-28, 3:59 am |
| Hello!
I'm a total newbie on TCL and I have inherit a VC++ 6.0 project which
creates a dll which I assume is an extension of TCL. In this project the
function Tcl_SetPanicProc is used.
The project is originally programmed using TCL 8.3, but I was not able to
create a proper version using VC++ 6.0 so I'm using TCL 8.4.11.1 from
ActiveState.
When compiling I get this error:
error C2664: 'Tcl_SetPanicProc' : cannot convert parameter 1 from 'void
(char *,...)' to 'void (__cdecl *)(const char *,...)'
Tcl_SetPanicProc(TCLPanicProc);
void TCLPanicProc _ANSI_ARGS_(TCL_VARARGS(char *,format));
void TCLPanicProc TCL_VARARGS_DEF(char *,arg1)
{
va_list argList;
char *format;
format = TCL_VARARGS_START(char *,arg1,argList);
CString szError;
szError.Format(format, argList);
AfxMessageBox(szError);
throw TCL_PANIC;
}
I have used the compiler switch USE_NON_CONST
Please Help!
// Anders
--
English isn't my first, or second, language.
So anything rude or strange are due to the translation
|