CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Jan 2010
    Posts
    53

    Why (LoadTypeLibEx failed : : Error loading type library/DLL. (Exception from HRESULT

    Hello,

    I am Loading type library from C++/CLI with following lines of code.

    [DllImportAttribute("oleaut32.dll", SetLastError = true, CharSet = CharSet::Unicode, PreserveSig=false)]

    static void LoadTypeLibEx( String^ strTypeLibName, RegKind regkind,[MarshalAs(UnmanagedType::Interface)] interior_ptr typeLib );

    Object^ oTypeLib;
    LoadTypeLibEx( strSubject,RegKind::RegKind_None, &oTypeLib);

    It again and again giving me same exception, all I have registered type library with regsrv32, placed in current directory and given full qualified path but still its giving me same exception. Any way around?

    Regards
    Usman
    Last edited by glitteringsound; June 7th, 2010 at 11:53 AM.

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