Hi,

I need to help with OnMonitor property.
i have this code:
...
 ftp->Sock->OnStatus = OnStatus;
 ftp->Sock->OnMonitor = OnMonitor; <- here is the problem
...

this functions:
void __fastcall TFormMain::OnStatus(TObject *Sender, THookSocketReason 
Reason, AnsiString Value)
{
//... some code
}

void __fastcall TFormMain::OnMonitor(TObject *Sender, bool Writing, TMemory 
const buffer, int len)
{
// ... some code
}

when I compile a got this error:
[BCC32 Error] UnitMain.cpp(4740): E2034 Cannot convert 'void (_fastcall * 
(_closure )(TObject *,bool,void * const,int))(TObject *,bool,void * 
const,int)' to 'THookMonitor'

Where is the problem? Please help.
stan


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to