coppro wrote:
The expat callbacks used by CDbXML are static class members, but since expat is a C interface, it is nonportable to use anything but an extern "C" global function for the callbacks. I would recommend inserting just before each callback function something like:
extern "C" DbXMLCTallyElementCForward (void * ud, const char * name, const char ** atts) { CDbXml::TallyElement(ud, name, atts); }
void CDbXml::TallyElement(
...
Sure, I don't mind adding this structure, though it will generate more function calls and slow down your import procedure by a millisecond.
____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.