|
-
Feb 2nd, 2002, 09:00 PM
#1
Thread Starter
Hyperactive Member
Passing a private class reference
Okay, my problem is kind of hard to explain, so hopefully this will make sense.
I'm making a DLL containing classes that will be used as a database system. The internal, core class is private, and not visible to the user of the DLL. This is because I can't hide everything that I need to hide with only one layer of public/private stuff without disabling VB's automatic detection of what to expect as a return from procedures. If that didn't make sense, ignore it, cause its not really a part of the problem.
Apart from this class, there are four others. 3 are public not creatable, and are used as helpers for the only public one, so that I can do something like Database.Records(i).IDCode or somesuch, where database if the public class, and records is an instance of one of the other classes.
My problem is this: I need to pass the private reference of the core class from the master public class to the other public not creatable classes, and I'd really like to do it without making a sub viewable to the user of the DLL. What I'd really LIKE to do is be able to do is alter the public not creatable classes to have a custom constructor the way I would be able to in C++. Is there a way I can do this, or is there another way to solve the problem?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|