Global variables for use with a DLL and referencing application

Can you store global variables in a DLL so they can be used within the DLL and by the referencing application - if so, how?
LVL 1
tomnichAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
PoddyConnect With a Mentor Commented:
No.

You need to set up a couple of functions to mimic a property

ie: 1 to set a value, 1 to retrieve it.
0
 
ajmendesCommented:
Hi,
the only way you have to do what you want is to declare Properties Set and Let and Properties Get in a classe module where you want to "share" the variable.
Properties Set/Let allow you to assign to the global variable of a class a object/simple value(number, string,etc).
Propertie Get allow you to retrieve the value that exists in the variable.
If you want more info, i'll be available on monday.

Bye.
0
 
tomnichAuthor Commented:
Thanks, Doesn't really acheive what I want, and it seems what I want is not possible
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.