Solved

Determining classes in existence

Posted on 2004-10-15
2
151 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
ID: 12317945
0
 

Author Comment

by:Mikkil
ID: 12326632
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…

856 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