Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Declaring Public String Constants in DLLs. How?

Status
Not open for further replies.

JNeave

Programmer
Jan 28, 2002
125
0
0
GB
I mean string constants that can be seen by the VB app that refernces the DLL. It must be able to be done, as VB (the library in the object browser) contains a Public module (???) called "Constants" containing public string and numeric constants. How the heck did they do that? Does anybody know?

cheers,

Jim.
 
I suspect that this is a constraint put on the Visual Basic language by Microsoft. I assume that VB is written in C++ which may not have the same restrictions.

You could get round this by declaring a class call Constants and returning the constant values as properties.

Andy.
 
That's what we do at current, have read only properties in a GlobalMultiUse Class. We're just hoping there is a better way.

Cheers,

Jim.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top