CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2003
    Location
    Germany, K-Town
    Posts
    578

    Get the MSXML 4.0 parser running -- help!

    Hello everybody,

    I'm currently writing a wrapper class for the MSXML 4.0 parser in C++, and I have a problem to get the app running on systems where the parser SDK is not installed.

    I'm using the #import directive to import the classes from the msxml4.dll library into my code, but that doesn't seem to be enough. When I start the app on another system where the SDK is NOT installed, I'm catching an exception: "Class not registered". I think it's a COM exception, since I use the following smart pointer interfaces:

    IXMLDOMDocument2Ptr
    IXMLDOMNodePtr

    When creating the instance of the document, I pass the class ID CLSID_DOMDocument40 as the argument.

    Well, it works just fine, except that the SDK needs to be installed to start the app. That's not bearable to force the user to install a software dev kit in order to use my apps!

    As a side note:
    If I use the older interface, in fact IXMLDOMDocument, and pass the class ID CLSID_DOMDocument, then it seems to work without installing the SDK. I already tried to #import msxml4a.dll and #import msxml4r.dll as well, but this only generated a compiler error.

    Can you help me here?

  2. #2
    Join Date
    Sep 1999
    Location
    Germany NRW Rhede
    Posts
    36

    just a guess

    I have seen in tom archers artikel on this site that it comes with IE5.0.
    Is on the target maschine IE5.0 installed?

    Regards

  3. #3
    Join Date
    Mar 2003
    Location
    Germany, K-Town
    Posts
    578
    It is, but I have already found the problem.

    The COM libraries have to be registered in the Windows registry using regsvr32.exe. Seems that I have to use an installer in order to get the app running on other systems than mine.

    Thanks anyway.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured