Solved

Global variables for use with a DLL and referencing application

Posted on 1998-11-13
3
228 Views
Last Modified: 2010-04-30
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
Comment
Question by:tomnich
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
Poddy earned 100 total points
ID: 1444802
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
 
LVL 1

Expert Comment

by:ajmendes
ID: 1444803
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
 
LVL 1

Author Comment

by:tomnich
ID: 1444804
Thanks, Doesn't really acheive what I want, and it seems what I want is not possible
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month7 days, 5 hours left to enroll

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question