Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I have a .NET COM class that's compiled into a .dll that I'm referencing in VB6 code.

 

Is there a way to make a .NET COM class a "master class" (not sure what the right terminology is - which is probably why I can't google it easily)?

 

When I say "master class" I want to initialize an instance of this one time and all other creations of this same object are references to the original creation.

 

So, the first time it's created and I set all the properties on this object, elsewhere in code I create another variable of this type but I don't want a new one with it's own set of properties etc. I want this to reference the originally created one.

 

Is this possible?

 

If it is what's the name of this technique? Or how to you go about approaching it? I think it can be down just not sure how to start.

 

Thanks.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...