Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++
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
Posted 23-Aug-12 0:25am
Edited 30-Aug-12 17:21pm
v2
Comments
Volynsky Alex at 23-Aug-12 7:10am
   
Try read the following post:
http://blogs.msdn.com/b/tess/archive/2009/04/29/unable-to-load-dll-dllname-dll-a-dynamic-link-library-dll-initialization-routine-failed-0x8007045a.aspx
dragon9098 at 15-Jun-14 23:53pm
   
Thank you very much!
Volynsky Alex at 16-Jun-14 4:10am
   
You're welcome
Sergey Alexandrovich Kryukov at 23-Aug-12 15:18pm
   
The code does not look like C++ -- see the beginning of the line. Did you just screw up some HTML formatting?
--SA
dragon9098 at 16-Dec-12 20:42pm
   
I'm so sorry.that is a C++Builder project.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 375
1 Prakriti Goyal 242
2 Yogesh Kumar Tyagi 224
3 Sergey Alexandrovich Kryukov 158
4 CPallini 150
0 OriginalGriff 6,742
1 Sergey Alexandrovich Kryukov 5,479
2 Maciej Los 3,474
3 Peter Leow 3,313
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web04 | 2.8.140721.1 | Last Updated 20 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100