Solved

Global variables for use with a DLL and referencing application

Posted on 1998-11-13
3
222 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
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

758 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now