Solved

Determining classes in existence

Posted on 2004-10-15
2
155 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
[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
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

726 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