Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Determining classes in existence

Posted on 2004-10-15
2
Medium Priority
?
176 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 1400 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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…
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

610 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