The biggest problem I had with this sort of stuff is to remember to compile any VC++ apps with the memory model /MD or /MDd for debug, as this is how the XERCES libraries are built. Without this you are using different memory models and all sorts of unexpected stuff can happen.
If you really cannot do this then you have to be quite rigourous about where memory is assigned and freed. The classic sign you have it wrong is when the char *p = delete []p; gives you an error. This really came to the for when I started using bounds checker, but I think you might also have an issue if you try and mix C and C++ programs in the same app as I think the separate compilers use different dynamic memory stacks. Hope this is a pointer anyway (if you will pardon the pun). Nick -----Original Message----- From: Bob Nemeth [mailto:[EMAIL PROTECTED]] Sent: 28 September 2001 22:01 To: Xerces-C-Dev Subject: MSVC 6 project Is there anything special about setting up a MSVC 6 project for Xerces-C? I'm continuing to have difficulty getting the version of DOMPrint.exe that I compile with my own project workspace to behave correctly. The following is what I did to create a new workspace: - create an empty console app - remove everything except user32.lib and kernel32.lib from the link list - add a #pragma statement to link xerces-c_1.lib - add the files to the project (DOMPrint.cpp, DOMTreeErrorReporter.cpp/hpp) - build Is there anything that I'm doing that I shouldn't be or vice versa? Can someone who uses VC6 help me out? Much thanks in advance. ============================ Bob Nemeth ERL, LLC [EMAIL PROTECTED] ============================ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************************* This message contains privileged and confidential information intended only for the use of the recipient named above. Its contents do not constitute a commitment by Strategic Thought Limited ("Strategic Thought") unless separately endorsed by an authorised representative of Strategic Thought. Any use, dissemination, distribution, reproduction or unauthorised disclosure of this message is prohibited. If you receive this message in error, please notify the sender immediately and delete it from your computer systems. Any views expressed in this message are those of the individual sender and may not necessarily reflect those of Strategic Thought. Strategic Thought believes this e-mail and any attachments to be virus free. However, the recipient is responsible for ensuring it is virus free and Strategic Thought do not accept any responsibility for any loss or damage howsoever caused from use of this e-mail, attachments or contents. ************************************************************************* --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
