Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Number of Class modules?

Status
Not open for further replies.

TheKing

Programmer
Joined
Feb 25, 2002
Messages
151
Location
US
Is there a way to know how many class modules are open at one time.

And if so is there a way to find out like if the second one of three was distroyed then I would like to find that number and use its number then.

What I have is a class module that calles the uses of a tcpControl. Well I can't use (example) port 5000 for all 3 class modules right? I would have to change each port number to 5000 plus the number of the next open class module.

Or am I making this alot harder than it should be?
TheKing
[pc3]
 
Create a (class)collection, and create the objects through this collection.

There is a method to determine how many objects of a certain type are still "Alive" using an object pointer and the API function CopyMemory.

But the collection should be sufficient. [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Wow, that is an interesting idea.

I will see if I can figure that out.

Thanks TheKing
[pc3]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top