[AGENT++] C++ function within snmp++ callback
Manuel Werlberger
m.werlberger at avibit.com
Fri Aug 4 12:02:47 CEST 2006
Hi!
Just ran into a problem:
I have my callback for an asynchronous get mechanism declared as extern
"C" as demanded. Everything works fine when i just print the oid and
value pair with qDebug. But i cannot invoke signals or other functions
within the callback. This is a big problem because i want to reuse the
oid/value in other classes. Is there a possibility to call a class
member function or just emit a signal from within the extern "C" callback?
In my case A i have a class with a extern "C" function included. In this
function i want to call a function callbackReturned(QString&, QString&) ....
What i get from the compiler:
--- snip ---
./snmpwrapper/snmpsession.cpp:272: error: `callbackReturned' was not
declared in this scope
./snmpwrapper/snmpsession.cpp:272: warning: unused variable
'callbackReturned'
--- snap ---
Hope sb can help me.
Rgds,
Manuel
More information about the AGENTPP
mailing list