|
-
Nov 27th, 2002, 11:16 AM
#1
Thread Starter
Addicted Member
simple question
Hi,
I'm creating a c++ class for to easily handle multiple connections with sockets. I'd like to work with some kind of events (I'm a vb programmer ) . My class will use a do loop to check for new connections / new messages (non blocking server). Can I possibly pass a pointer to a function from with the actual code to my class. And then call the sub from within my class.
What I'm trying to say is. I want to call a sub in the code where my class is used. But I don't know wich sub yet. So the user has to tell me (with a function possibly) wich function to call when a new connection is made for example.
Thanks,
Walter Brebels
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
|