Dear friends, I have a problem:
When the program runs to:
>_di_IXMLNodeList list = LoadXMLDocument ( " XML\\xx.xml " ) ->DocumentElement->ChildNodes->FindNode ( " XXX " ) ->ChildNodes;
Note: Project XX.exe raised exception class EOleSysError with message ' dynamic link library DLL initialization routine failed. ' Process stopped.
How to solve?
Also that is a C++ Builder Project
Edited 30 Aug '12 - 17:21
If this code is where your DLL is loading, you probably get that error because the MSXML.DLL cannot load into your process at the same time as another DLL (in this case your own DLL) is loading.
This happens a lot with new developers - everything ends up at 'dll load time' and then they discover that only a single DLL can load at a time in Windows, because of the DLL loader lock. You might have to try refactoring your code, if that is the case, and let your DLL load and THEN call some other function you expose from the DLL which is processing the XML data.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)