List Info

Thread: Callback




Callback
user name
2006-09-01 05:49:39
i am calling function in my code as
 
iaxc_set_event_callback(handle_iaxc_callback);
 
but getting an error
 
'iaxc_set_event_callback' : cannot convert parameter 1 from 'int (struct iaxc_event_struct)' to 'int (__stdcall *)(struct iaxc_event_struct)'
    ;    None of the functions with this name in scope match the target type
 
and I define function as
int  handle_iaxc_callback (iaxc_event e)
{
}
 
Please help me in this regard how shud i call this function and define it?


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.
Callback
user name
2006-09-01 11:36:51

Define your function as follows, and the error will go away:

 

int  __stdcall handle_iaxc_callback (iaxc_event e)

{

}

 

 

-----Original Message-----
From: iaxclient-devel-bounceslists.sourceforge.net [mailto:iaxclient-devel-bounceslists.sourceforge.net] On Behalf Of Rafat Subhan
Sent:
Friday, September 01, 2006 1:50 AM
To: iaxclient-devellists.sourceforge.net
Subject: [Iaxclient-devel] Callback

 

i am calling function in my code as

 

iaxc_set_event_callback(handle_iaxc_callback);

 

but getting an error

 

'iaxc_set_event_callback' : cannot convert parameter 1 from 'int (struct iaxc_event_struct)' to 'int (__stdcall *)(struct iaxc_event_struct)'
    ;    None of the functions with this name in scope match the target type

 

and I define function as

int  handle_iaxc_callback (iaxc_event e)

{

}

 

Please help me in this regard how shud i call this function and define it?

 


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail.

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )