-
Beginner problem
I am a beginner to c++(I use Vb almost exclusively) but I thought I would
try Vc++ out and give myself a fake project to try and complete. I decided
I would like to develop a c++ socket layer and use it in Vb(I heard the Vb
Winsock AX control has memory leaks). I created an ATL COM project with MFC
support. I added an ATL simple object that supports Iconnection points so
I can add events (I called it SocketManager). I added an event called UpdateStatus
which is used to send string messages down to its container as an event.
I then added another class called CRawSocket which has a base class of CSocket
and added all the events associated with the base class. Ok, heres the problem.
I can access UpdateStatus(Fire_UpdateStatus) from ISocketManager, but how
can I access UpdateStatus from CRawSocket? I think I have to pass in the
pointer from the caller (ISocketManager) but I don't know how to declare
it? Please help because I'm all out of ideas and I've been searching all
over the internet.. Thanks in advance!
Regards,
Aaron Sevivas
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
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks