R
rammel
Hi,
I'm using a c-library in my c++ project.
Therefore I've to call this c-function:
int rm_init(int id, char* ip, unsigned short port, int timeout,
callaback_fnc);
the signatures of the callback function is:
void callback_fnc(int, int, int, char*)
I want to use a class member as the callback-function and the call
shall be done in the ctor of the same class:
struct C
{
void cb(int id, int cmd, int len, char* data);
C()
{
}
};
I'm using a c-library in my c++ project.
Therefore I've to call this c-function:
int rm_init(int id, char* ip, unsigned short port, int timeout,
callaback_fnc);
the signatures of the callback function is:
void callback_fnc(int, int, int, char*)
I want to use a class member as the callback-function and the call
shall be done in the ctor of the same class:
struct C
{
void cb(int id, int cmd, int len, char* data);
C()
{
}
};