|
-
Oct 20th, 2000, 07:22 AM
#1
Thread Starter
PowerPoster
I have a class which manages my network connections. I implemented the winsock control using WithEvents, but my problem is: How can I make an array?
Code:
Dim WithEvents WS() as Winsock
or
Type tUser
WithEvents WS as WinSock
End Type
User() as tUser
There must be a way!
-
Oct 20th, 2000, 07:27 AM
#2
transcendental analytic
How about having a classcollection of wrapper class for each winsock, should catch all events and then you could like raise an indexed event in the classcollection
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Oct 20th, 2000, 08:28 AM
#3
Hyperactive Member
This would have been a great thing to put on one of those wish lists for new versions.
I know it's not exactly a lot of work to wrap 'em up a
in 'collection class', and the code for it write is fairly reusable, but i'm sure MS could put a nasty little hack in that allowed you to add event raising objects to a standard collection, and when those events were triggered, the collection pased them back out. would be really usefull.
just a thought.
"One logical slip and an entire scientific edifice comes tumbling down." - Robert M. Pirsig
[email protected]
"but if Einstein is right and God is in the details, reality requires that we sometimes get religion." - Scott Meyers.
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
|