Results 1 to 24 of 24

Thread: How do I put global constants in my ActiveX DLL?

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Oct 2008
    Posts
    1,238

    How do I put global constants in my ActiveX DLL?

    I am trying to make an ActiveX DLL with instancing type of GlobalMultiUse, and I want a constant in it to be accessible outside of the class it's defined in, like Functions and Subs already are. Yet whenever I try to define a constant as Public or Global, I get the error message "Constants, bla bla bla bla, are not allowed as members of object modules". The constant MUST be placed within the class if it is going to get the benefits of the class having an instancing type of GlobalMultiUse. I want it so that when a reference to the DLL is added in a VB6 program, all the functions are immediately available (no instances need to be created of the class), and I also want it so that all the CONSTANTS are immediately available. How do I do this?
    Last edited by Ben321; Mar 28th, 2015 at 01:50 PM.

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