Solved

Determining classes in existence

Posted on 2004-10-15
2
148 Views
Last Modified: 2011-09-20
Folks,

I'm developing a one-program-does-everything system. The idea is mainly to get away from my usual write a bit of code to solve a problem and then forget it, or where it was done.

At present I'm doing this by creating various classes with the required functionality and, on a very basic scale, allowing them to communicate with each other.

I'm using a single form to create instances of the classes which may in turn create instances of other classes.

My question is : can I determine what classes are in existence (and use them) and from where can I do this  (I'm assuming at the moment that classes instantiated from the form are "visible" to the form and classes instantiated from 'other' classes are "visible" to the 'other' classes only)?

I have heard mention of using collections to do something like this. If I understand correctly, this is also heading in the direction of "persistence" that I have read bout in relation to ActiveX controls.
0
Comment
Question by:Mikkil
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 350 total points
Comment Utility
0
 

Author Comment

by:Mikkil
Comment Utility
Eddykt,

Thanks for your comment.

I mentioned Activex at the end of my question, but I am not using ActiveX in the project.

Am I wrong or is your comment more tailored towards Activex with the registry acess etc ? I thought there might be something simpler i.e. the form object having collections that are added to when a class is called from it etc.

The code sounds very interesting.

I'm increasing the ponts as there is information I haven't looked for being sent.

Thanks

Mikkil
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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

771 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

10 Experts available now in Live!

Get 1:1 Help Now