Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

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?
0
tomnich
Asked:
tomnich
1 Solution
 
PoddyCommented:
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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now