Results 1 to 8 of 8

Thread: [RESOLVED] The trick's Library-info-2: Error in loading DLL

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,107

    Resolved [RESOLVED] The trick's Library-info-2: Error in loading DLL

    I got an error while testing The trick's Library-info-2: Error in loading DLL

    The test process is as follows:

    (1) Open the RC6 .dll

    (2) Click cVBDraw in the left listbox, and the system will pop up the error message: Error in loading DLL

  2. #2
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,271

    Re: The trick's Library-info-2: Error in loading DLL

    If you trap the error in frmLibInfo.LoadCoClass like this:

    Code:
            On Error Resume Next
            Set impl = Nothing
            Set impl = typ.GetRefTypeInfo(hType)
            On Error GoTo 0
            
            If impl Is Nothing Then
             Debug.Print i
            Else
            impl.GetDocumentation -1, Name, vbNullString, 0, vbNullString
    You can see that type.GetRefTypeInfo(hType) fails on indexes #1 and #3.... not sure why though.

  3. #3
    Fanatic Member VanGoghGaming's Avatar
    Join Date
    Jan 2020
    Location
    Eve Online - Mining, Missions & Market Trading!
    Posts
    538

    Re: The trick's Library-info-2: Error in loading DLL

    The RC6 dll is alive and it's protecting itself against inspection!

  4. #4
    PowerPoster
    Join Date
    Aug 2010
    Location
    Canada
    Posts
    2,271

    Re: The trick's Library-info-2: Error in loading DLL

    Quote Originally Posted by VanGoghGaming View Post
    The RC6 dll is alive and it's protecting itself against inspection!
    And it's inside the room!

  5. #5
    PowerPoster
    Join Date
    Jun 2013
    Posts
    6,631

    Re: The trick's Library-info-2: Error in loading DLL

    Quote Originally Posted by jpbro View Post
    You can see that type.GetRefTypeInfo(hType) fails on indexes #1 and #3.... not sure why though.
    cVBDraw maps "VB-Drawing- and -Scaling" to "antialiased Cairo-Drawing ... and Scaling" -
    and its behaviour is tricky, because for that it had to implement the VB.Printer-interface -
    as well as two additional interfaces (to account for the "weird-syntax": Print- as well as Line-, Circle- and Pset-calls).

    Implements VB.Printer
    Implements VBGraphics.IVBPrint
    Implements VBGraphics.IVBGraphics

    It compiles without problems - but the Print- Line- Circle- and Pset- commands are "special"
    (not only syntax-wise) ... as we all know.

    So, perhaps it is caused due to a "typelib-overlap" of VBGraphics.tlb with VBs intrinsic typelib-defs for IVBPrint and IVBGraphics...

    Not sure about that (and at the moment "unwilling to investigate", due to time-constraints)...

    Olaf

  6. #6

  7. #7

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,107

    Re: The trick's Library-info-2: Error in loading DLL

    Quote Originally Posted by Schmidt View Post
    cVBDraw maps "VB-Drawing- and -Scaling" to "antialiased Cairo-Drawing ... and Scaling" -
    and its behaviour is tricky, because for that it had to implement the VB.Printer-interface -
    as well as two additional interfaces (to account for the "weird-syntax": Print- as well as Line-, Circle- and Pset-calls).

    Implements VB.Printer
    Implements VBGraphics.IVBPrint
    Implements VBGraphics.IVBGraphics

    It compiles without problems - but the Print- Line- Circle- and Pset- commands are "special"
    (not only syntax-wise) ... as we all know.

    So, perhaps it is caused due to a "typelib-overlap" of VBGraphics.tlb with VBs intrinsic typelib-defs for IVBPrint and IVBGraphics...

    Not sure about that (and at the moment "unwilling to investigate", due to time-constraints)...

    Olaf
    I see, it's not a big problem, it doesn't affect my current work. Thank you, Olaf.

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2020
    Posts
    1,107

    Re: The trick's Library-info-2: Error in loading DLL

    Quote Originally Posted by The trick View Post
    It's because VBGraphics.tlb isn't registered on end user machine. In order to see all the methods you should register it.
    Thank you, The trick.

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