This is a shot in the dark ... make sure that you are linking against the multi-threaded DLL (not static lib). This caused me some headaches with XALAN.
Linda Derezinski Interface & Control Systems -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 08, 2000 4:38 PM To: [EMAIL PROTECTED] Subject: Re: Not receiving SAX callbacks in an MFC application I think I responded to you previously, perhaps on the XML4C board. There is little here that I can tell you. Many other people are clearly using the SAX parser. If the only difference is MFC, I'm really at a loss as to what would be the problem. ---------------------------------------- Dean Roddey Software Weenie IBM Center for Java Technology - Silicon Valley [EMAIL PROTECTED] Ryan Weaver <[EMAIL PROTECTED]> on 03/06/2000 03:07:06 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: Not receiving SAX callbacks in an MFC application In my MFC application, which includes the SAX parser, my document handler class derived from HandlerBase does not receive any callbacks other than startElement. Any other method that I override does not get called. The application runs fine, executing the parser->parse(XMLFile); call without exceptions. Building the SAXPrint example project works; running it on the same xml file used in my MFC application produces the expected printout, showing that the SAXPrint callbacks are being made in the SAXPrint application. For both my application and SAXPrint, I used VC++ 5.0 and NT(SP5). The correct calls for setting up the SAX parser have been made, identical to the included SAX sample projects. I am using version 1.1.0 of xerces-c. (Also tried under VC++ 6.0 (still NT - SP5) and it did not work here either). So, no errors are seen and the program seems to work fine, aside from the fact that my document handler methods are not called. It appears the only difference between my MFC app and the SAXPrint app is MFC. Are there any known problems with the SAX parser working under an MFC app? Why are my document handler methods not being called? Needless to say, any help would be appreciated. Thanks in advance. Ryan Weaver Software Engineer Engineering Animation, Inc. T: 425.468.5319 F: 425.468.5301