Hi,
I need to define/declare a callback function in VC. The call back
function mechanism I used on SGI IRIX doesn't link on VC. It is simply :
typedef void (*TALoggerCbFunc)();
class taLoggable {
// lots of other stuff
void regLoggerCb( TALoggerCbFunc func );
static TALoggerCbFunc loggerCallback ;
Quote:
}
In the
MFC code :
void myFunc (){
Quote:
}
anInstance->regLoggerCb( myFunc )
I get this error message
WorkerThread.obj : error LNK2001: unresolved external symbol "public:
void __thiscall taLoggable::regLoggerCb(void (__cdecl*)(void))"
Debug/TestBed.exe : fatal error LNK1120: 1 unresolved externals
Any ideas ?
devrim.