Page 2 of 2 FirstFirst 12
Results 41 to 42 of 42

Thread: VB6 Regfree-Usage of your own VB- and other COM-Dlls per DirectCOM-Helper

  1. #41

    Thread Starter
    PowerPoster
    Join Date
    Jun 2013
    Posts
    7,441

    Re: VB6 Regfree-Usage of your own VB- and other COM-Dlls per DirectCOM-Helper

    Quote Originally Posted by tmighty2 View Post
    I am getting an error trying to use my ActiveX dll. The error I am getting is "No Permission (probably unregistered Types in the Interface-Def)".
    I am using a tlb in this Dlll, and i expose an enum through that.
    Nothing from the Dll-internal typelib should be exposed in Public Methods or Props of the Dll...
    Also - if you have other Dll-References in your Dll-Project (as e.g. RC6 or RC6Widgets) -
    Classes from those References need to be loaded regfree inside the Dll-Project as well...

    Olaf

  2. #42
    PowerPoster
    Join Date
    Jan 2020
    Posts
    5,109

    Re: VB6 Regfree-Usage of your own VB- and other COM-Dlls per DirectCOM-Helper

    Quote Originally Posted by Schmidt View Post
    GetInstance(Ex) only scans the first TLB-resource-blob of a given Dll-file.
    The (co)class-info for "regexp" is sitting in a secondary (or third) resource-blob.

    So DirectCOM-dll will not work for the RegExp-Class in vbscript.dll ...
    but why not use CreateObject in this case (it's a system-lib, where you don't need regfree loading).

    Olaf
    Can I add the function to specify the index?

Page 2 of 2 FirstFirst 12

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