Click here to Skip to main content
14,974,494 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1328-Dec-12 3:08
Memberbkelly1328-Dec-12 3:08 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti28-Dec-12 3:37
Memberpasztorpisti28-Dec-12 3:37 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1327-Dec-12 8:22
Memberbkelly1327-Dec-12 8:22 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti27-Dec-12 14:02
Memberpasztorpisti27-Dec-12 14:02 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
SoMad27-Dec-12 14:51
professionalSoMad27-Dec-12 14:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
bkelly1328-Dec-12 3:13
Memberbkelly1328-Dec-12 3:13 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pin
pasztorpisti28-Dec-12 5:06
Memberpasztorpisti28-Dec-12 5:06 
Questioncalling virtual base class Pin
bkelly1314-Dec-12 7:36
Memberbkelly1314-Dec-12 7:36 
Visual Studio 2008, MFC, CAsyncSocket

The programmer creates the overrides such as OnAccept(). Here is a fragment from elsewhere on this site:

void MyEchoSocket::OnAccept(int nErrorCode) 
{ 
// TODO: Add your specialized code here and/or call the base class 
if(nErrorCode==0) 
{ 
((CEchoServerDlg*)m_pDlg)->OnAccept(); 
}
CAsyncSocket::OnAccept(nErrorCode); 
} 


Note that the comment says and/or. The question is: Is there a need to have the call CAsyncSocket::OnAccept()? In the over-ride code can I just execute what I want done and forget that call to CAsyncSocket::OnAccept()?

Thanks for your time
AnswerRe: calling virtual base class Pin
pasztorpisti18-Dec-12 22:39
Memberpasztorpisti18-Dec-12 22:39 
AnswerRe: calling virtual base class Pin
Albert Holguin19-Dec-12 7:22
professionalAlbert Holguin19-Dec-12 7:22 
GeneralThe reason for the question Pin
bkelly1319-Dec-12 15:51
Memberbkelly1319-Dec-12 15:51 
GeneralRe: The reason for the question Pin
Richard MacCutchan19-Dec-12 23:06
mveRichard MacCutchan19-Dec-12 23:06 
GeneralRe: The reason for the question Pin
bkelly1321-Dec-12 6:11
Memberbkelly1321-Dec-12 6:11 
Questioncannot add control variable to checkbox Pin
bkelly1314-Dec-12 3:07
Memberbkelly1314-Dec-12 3:07 
AnswerRe: cannot add control variable to checkbox Pin
Richard MacCutchan14-Dec-12 3:36
mveRichard MacCutchan14-Dec-12 3:36 
GeneralRe: cannot add control variable to checkbox Pin
bkelly1314-Dec-12 5:18
Memberbkelly1314-Dec-12 5:18 
Questiondetect multiple instances of an application Pin
bkelly1310-Dec-12 12:28
Memberbkelly1310-Dec-12 12:28 
AnswerRe: detect multiple instances of an application Pin
Pete O'Hanlon10-Dec-12 12:31
mvePete O'Hanlon10-Dec-12 12:31 
GeneralRe: detect multiple instances of an application Pin
bkelly1310-Dec-12 13:38
Memberbkelly1310-Dec-12 13:38 
AnswerRe: detect multiple instances of an application Pin
H.Brydon31-Dec-12 20:09
professionalH.Brydon31-Dec-12 20:09 
QuestionOpen file in basic MFC app Pin
bkelly135-Dec-12 14:45
Memberbkelly135-Dec-12 14:45 
AnswerRe: Open file in basic MFC app Pin
Richard MacCutchan5-Dec-12 21:24
mveRichard MacCutchan5-Dec-12 21:24 
GeneralRe: Open file in basic MFC app Pin
bkelly139-Dec-12 11:36
Memberbkelly139-Dec-12 11:36 
GeneralRe: Open file in basic MFC app Pin
Richard MacCutchan9-Dec-12 21:36
mveRichard MacCutchan9-Dec-12 21:36 
Generalthe answer is Pin
bkelly139-Dec-12 12:25
Memberbkelly139-Dec-12 12:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.