|
From: Daniel G. <sp...@ho...> - 2002-07-30 13:28:55
|
Can an object pass itself into the function it is calling?
void DevModeDlg::OnSysCommand( UINT ID, LPARAM LParameter )
{
try
{
DoOnSysCommandWork();
}
catch ( Exception &Obj )
{
Obj.SetErrorLog( &Obj ) // <--- Here
}
}
where SetErrorLog
void Exception::SetErrorLog( Exception &Obj )
{
//... create a text file and put in data contained in Obj.
}
I tried 'this' but b/c I'm inside another class' function it tries to pass
that object (DevModeDlg)
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
|