Results 1 to 3 of 3

Thread: This is hard...

  1. #1

    Thread Starter
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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!

  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    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.

  3. #3
    Hyperactive Member tumblingdown's Avatar
    Join Date
    Mar 2000
    Posts
    362
    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
  •  



Click Here to Expand Forum to Full Width