CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2001
    Location
    Mi
    Posts
    1,249

    __missing_type__ ***???

    Yee Haw ... I'm Back. 5+ long years since working with VC++ ... Now for the headache ...

    I keep getting this damned compile error on __missing_type__ ... This object is a placeholder for the actual defined type in the method prototypes (which happens to be EROOTKEY - which happens to be defined in the win.tlb file). What I'm trying to figure out is why I'm getting this blasted substitution in the 1st place ... Any thoughts?

  2. #2
    Join Date
    May 2006
    Location
    Norway
    Posts
    1,709

    Re: __missing_type__ ***???

    Oh yeah! This is easy... Seriously, read your post once more. Do you think it is possible to help you with the information you provided?

    Regards,

    Laitinen

  3. #3
    Join Date
    Jun 2001
    Location
    Mi
    Posts
    1,249

    Re: __missing_type__ ***???

    Quote Originally Posted by laitinen
    Oh yeah! This is easy... Seriously, read your post once more. Do you think it is possible to help you with the information you provided?

    Regards,

    Laitinen
    Perhaps others have had this missing type happen to them ... and solved it. Right now, I have no idea of why, or under what circumstances this missing type gets substituted ... I do know that some registration has to occur in the registry to eliminate this error (i. e. this problem is fixed). But the fix itself is some black magic that I would like to shine some light on ...

    I'll have to get to you on the code ... Gotta find it again.

  4. #4
    Join Date
    Mar 2002
    Location
    Izhevsk, Udmurtia, Russia
    Posts
    930

    Re: __missing_type__ ***???

    This keyword appears when the TLB (or DLL) is imported into C++ source. If this TLB depends on other TLB, which doesn't register in system yet. The #import-processor cannot resolve the used type and replaces it with __missing_type__.

    If you load your TLB(DLL) into OLE/COM Viewer, you can see the message:
    ---------------------------
    OLEViewer 2.0 Interface Viewers
    ---------------------------
    Could not decompile selected item
    <No system message defined> TYPE_E_CANTLOADLIBRARY ($80029C4A)
    ---------------------------
    ОК
    ---------------------------
    What you can do is:
    - load the TLB(DLL) into any HEX or binary Editor;
    - find the ".TLB" and ".DLL" inside;
    - register these libraries.
    With best wishes,
    Vita
    -----------------------
    Russian Software Development Network -- http://www.rsdn.ru

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