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? |
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 |
|
|