logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

RE: C++/Sax-Interface/member function: msg#00170

Subject: RE: C++/Sax-Interface/member function
> How can I pass a member function from a C++ class 
> to a xmlSAXHandler without making it static ?

You can't.  Calling a C++ class member pushes a this pointer to the stack so
the function can access the class members.  The function is therefore not
compatible with the C function.  If you make the function static there is no
'this' pointer thus making the functions compatible.


<Prev in Thread] Current Thread [Next in Thread>