CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    7

    Interface not registered!

    I'm programming with VC6 and IE5.I want to benifit
    from msxml.dll,so I use the #import msxml.dll .
    But when I CreateInstance,the error is "Interface not registered"!Why?
    Anybody can help me?
    My code is bellow:

    #import "c:\windows\system\msxml.dll"
    MSXML::IXMLDOMDocumentPtr pXmldom;
    hres=pXmldom.CreateInstance (__uuidof(MSXML::IXMLDOMDocument ))



    The hres=80040154,this error mean Interface not registered!
    Thanks a lot!


  2. #2
    Join Date
    May 1999
    Location
    13 N 77 E
    Posts
    183

    Re: Interface not registered!

    Your code is very educative, I normally
    call Loadlibrary and getprocaddress for non COM dlls and use the OLEviewer to get info on interfaces to call thru CoCreateInstance.

    I would like to test this code sometime.


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