Article View: borland.public.cppbuilder.internet.socket
Article #4848Re: Socket Runtime questions (Again)
From: Dev Support
Date: Sat, 27 Nov 2004 20:46
Date: Sat, 27 Nov 2004 20:46
36 lines
1945 bytes
1945 bytes
Remy: Thanks for the help. Your tips helped. Not sure why the function must be a method BUT it does work! As a follow up question, how can I determine which of my multiple sockets is calling my error method? Am I to cast the Sender parm as a client socket? To refresh you, I'm creating an array of 10 sockets and one error handler for all to keep the code simple. Thank you Marshall "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message news:419cef78$1@newsgroups.borland.com... > > "Dev Support" <infsoft@centurytel.net> wrote in message > news:419cd7f5@newsgroups.borland.com... > > > I keep getting the error : > > > > [C++ Error] sock100.cpp(59): E2034 Cannot convert 'void (*)(TObject > > *,TCustomWinSocket *,TErrorEvent,int &)' to 'void (_fastcall * > > (_closure )(TObject *,TCustomWinSocket *,TErrorEvent,int &))(TObject > > *,TCustomWinSocket *,TErrorEvent,int &)' > > Your event handler must be a method of a class, not a standalone function. > > > Gambit > >
Technical Details
Message-ID:
<41a8c7fe$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<419cd7f5@newsgroups.borland.com> <419cef78$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,18bd2c5dd1b06641 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Dev Support" <infsoft@centurytel.net> Newsgroups: borland.public.cppbuilder.internet.socket References: <419cd7f5@newsgroups.borland.com> <419cef78$1@newsgroups.borland.com> Subject: Re: Socket Runtime questions (Again) Date: Sat, 27 Nov 2004 12:46:21 -0800 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 69.29.171.200 Message-ID: <41a8c7fe$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1101580286 69.29.171.200 (27 Nov 2004 10:31:26 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail