Click here to Skip to main content
       

ATL / WTL / STL

 
QuestionWhile launching a winapp as ole server some time OnFIleNew() failed Pinmembervermaashish_mca31-Dec-12 0:27 
QuestionTCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1321-Dec-12 6:09 
AnswerRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti22-Dec-12 9:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1327-Dec-12 6:16 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti27-Dec-12 13:47 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API [modified] Pinmemberbkelly1328-Dec-12 3:08 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti28-Dec-12 3:37 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1327-Dec-12 8:22 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti27-Dec-12 14:02 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API PinmemberSoMad27-Dec-12 14:51 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberbkelly1328-Dec-12 3:13 
GeneralRe: TCP blocking -vs- CAsyncSocket -vs- Win32 API Pinmemberpasztorpisti28-Dec-12 5:06 
Questioncalling virtual base class Pinmemberbkelly1314-Dec-12 7:36 
AnswerRe: calling virtual base class Pinmemberpasztorpisti18-Dec-12 22:39 
Here is the implementation of CAsyncSocket::OnAccept():
void CAsyncSocket::OnAccept(int /*nErrorCode*/)
{
}
As you see it doesn't count whether you call it or not but in my opinion its always better to upcall base class methods when you are not sure what to do and the upcall doesn't do any harmful thing to your code. In this case its unlikely that MS changes the implementation of such a core class but generally when you use others' classes as a baseclass its better not to build anything on assumptions. Imagine what happens if you refactor your socket code and you change the baseclass of your socket class from CAsyncSocket to another socket class of yours that does something meaningful in OnAccept()... So here I recommend the upcall as I think its a good practice.
AnswerRe: calling virtual base class PinmemberAlbert Holguin19-Dec-12 7:22 
GeneralThe reason for the question Pinmemberbkelly1319-Dec-12 15:51 
GeneralRe: The reason for the question PinmvpRichard MacCutchan19-Dec-12 23:06 
GeneralRe: The reason for the question Pinmemberbkelly1321-Dec-12 6:11 
Questioncannot add control variable to checkbox Pinmemberbkelly1314-Dec-12 3:07 
AnswerRe: cannot add control variable to checkbox PinmvpRichard MacCutchan14-Dec-12 3:36 
GeneralRe: cannot add control variable to checkbox Pinmemberbkelly1314-Dec-12 5:18 
Questiondetect multiple instances of an application Pinmemberbkelly1310-Dec-12 12:28 
AnswerRe: detect multiple instances of an application PinprotectorPete O'Hanlon10-Dec-12 12:31 
GeneralRe: detect multiple instances of an application Pinmemberbkelly1310-Dec-12 13:38 
AnswerRe: detect multiple instances of an application PinmemberH.Brydon31-Dec-12 20:09 
QuestionOpen file in basic MFC app Pinmemberbkelly135-Dec-12 14:45 
AnswerRe: Open file in basic MFC app PinmvpRichard MacCutchan5-Dec-12 21:24 
GeneralRe: Open file in basic MFC app Pinmemberbkelly139-Dec-12 11:36 
GeneralRe: Open file in basic MFC app PinmvpRichard MacCutchan9-Dec-12 21:36 
Generalthe answer is Pinmemberbkelly139-Dec-12 12:25 
QuestionHow To Use Macro In dsp file(VC6.0 *.dsp file) Pinmemberyingkou27-Nov-12 14:37 
AnswerRe: How To Use Macro In dsp file(VC6.0 *.dsp file) PinmvpRichard MacCutchan27-Nov-12 23:34 
QuestionAccessibleObjectFromWindow returns E_ACCESSDENIED PinmemberBianChengNan25-Nov-12 23:04 
QuestionHow to use NTGraph3D Activex Control in Visual Studio 2010. PinmemberDhrumilS23-Nov-12 0:44 
Newshacker240union Pinmemberhacker240union22-Nov-12 23:40 
Questioncopying AAComBSTR to BYTE PinmemberV K 220-Nov-12 20:56 
AnswerRe: copying AAComBSTR to BYTE PinmvpRichard MacCutchan20-Nov-12 21:28 
AnswerRe: copying AAComBSTR to BYTE Pinmemberhacker240union22-Nov-12 23:27 
QuestionC++ Delegate/Events PinmemberEdward G Dana14-Nov-12 17:15 
AnswerRe: C++ Delegate/Events PinmvpRichard MacCutchan14-Nov-12 20:57 
GeneralRe: C++ Delegate/Events PinmemberEdward G Dana15-Nov-12 13:35 
GeneralRe: C++ Delegate/Events PinmvpRichard MacCutchan15-Nov-12 23:45 
AnswerRe: C++ Delegate/Events Pinmemberpasztorpisti20-Nov-12 2:53 
GeneralRe: C++ Delegate/Events PinmemberEDanaII20-Nov-12 16:23 
QuestionReturn FALSE in InitInstance causes crash in 64Bits Pinmemberkhaliloenit8-Nov-12 1:01 
AnswerRe: Return FALSE in InitInstance causes crash in 64Bits PinmemberAlbert Holguin10-Dec-12 4:30 
QuestionHow to get used dll's path information programetically? Pinmemberlitu kumar6-Nov-12 19:38 
AnswerRe: How to get used dll's path information programetically? PinmvpRichard MacCutchan6-Nov-12 21:40 
GeneralRe: How to get used dll's path information programetically? [modified] Pinmemberlitu kumar6-Nov-12 23:27 
GeneralRe: How to get used dll's path information programetically? PinmvpRichard MacCutchan7-Nov-12 4:54 

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

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


Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 2 Oct 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid