Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Public Constants in ActiveX Document DLL

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List Spell Checker
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

   Insert an File
Check here to include your profile signature.
Check here to subscribe to this topic.
    

T O P I C    R E V I E W
Threshold Posted - Apr 15 2005 : 6:30:01 PM
I'm working on an ActiveX Document DLL (basically a library of classes) but I would like to give the end programmer access to some constants. As far as I know and have experienced classes cannot define public constants and public constants in modules are hidden from the end programmer. I did notice that the DirectX 8 library does, in fact, give me access to many constants. How can I achieve the same thing? Is there a better/equivalent alternative?
2   L A T E S T    R E P L I E S    (Newest First)
Threshold Posted - Apr 16 2005 : 7:21:58 PM
Thanks! I'll look into that.
Eric Coleman Posted - Apr 16 2005 : 3:26:54 PM
You could use public properties to simulate constants. Simply make it "read only", as in only have "Get" statements and no "Let" statments. Public Property Get MyValue() As String: MyValue="hello world" :End Property

VBGamer © Go To Top Of Page
This page was generated in 0.05 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.