For Programmers: Free Programming Magazines  


Home > Archive > Tcl > September 2005 > Tcl_SetPanicProc changed in 8.4









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Tcl_SetPanicProc changed in 8.4
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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com