Click here to Skip to main content
16,006,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Abort Pin
David Crow11-May-05 7:46
David Crow11-May-05 7:46 
GeneralRe: Abort Pin
Ansari A. Halim11-May-05 7:48
Ansari A. Halim11-May-05 7:48 
GeneralRe: Abort Pin
Anonymous12-May-05 6:40
Anonymous12-May-05 6:40 
GeneralQuestion re: overriding functions and default arguments Pin
Budric B.11-May-05 6:10
Budric B.11-May-05 6:10 
GeneralRe: Question re: overriding functions and default arguments Pin
David Crow11-May-05 6:14
David Crow11-May-05 6:14 
GeneralRe: Question re: overriding functions and default arguments Pin
S. Senthil Kumar11-May-05 7:03
S. Senthil Kumar11-May-05 7:03 
GeneralRe: Question re: overriding functions and default arguments Pin
Ansari A. Halim11-May-05 8:07
Ansari A. Halim11-May-05 8:07 
GeneralRe: Question re: overriding functions and default arguments Pin
Ryan Binns11-May-05 18:09
Ryan Binns11-May-05 18:09 
This is not a good idea. Good programming practice is to always use the same default values for overridden methods, or better yet, don't use default values for virtual methods. Have you tried to compile this? I don't think it will compile. The compiler doesn't know that pvar1 is actually of type B, so it will check the parameters against the Init method in class A, and fail, because there are no defaults. The defaults for the method in class B will only be used if you call the method through a variable of type B.

Generally, if you don't know what will happen, don't do it, because it will make someone else's life difficult when they come to maintain it and also don't know what will happen.

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralDLL and CTypedPtrList problem Pin
Andrew Hoole11-May-05 5:38
Andrew Hoole11-May-05 5:38 
GeneralRe: DLL and CTypedPtrList problem Pin
David Crow11-May-05 6:19
David Crow11-May-05 6:19 
GeneralRe: DLL and CTypedPtrList problem Pin
Andrew Hoole11-May-05 21:37
Andrew Hoole11-May-05 21:37 
GeneralRe: DLL and CTypedPtrList problem Pin
lynchspawn12-May-05 3:12
lynchspawn12-May-05 3:12 
GeneralRe: DLL and CTypedPtrList problem Pin
Andrew Hoole13-May-05 0:51
Andrew Hoole13-May-05 0:51 
Generalcreate/write excell file, set column width Pin
chenggong11-May-05 4:45
chenggong11-May-05 4:45 
GeneralRe: create/write excell file, set column width Pin
David Crow11-May-05 5:27
David Crow11-May-05 5:27 
GeneralWin2k/WinXP password authentication Pin
DarkCloud1411-May-05 4:00
DarkCloud1411-May-05 4:00 
GeneralRe: Win2k/WinXP password authentication Pin
Blake Miller11-May-05 4:18
Blake Miller11-May-05 4:18 
GeneralRe: Win2k/WinXP password authentication Pin
David Crow11-May-05 4:34
David Crow11-May-05 4:34 
GeneralRe: Win2k/WinXP password authentication Pin
DarkCloud1411-May-05 10:37
DarkCloud1411-May-05 10:37 
GeneralRe: Win2k/WinXP password authentication Pin
David Crow11-May-05 10:58
David Crow11-May-05 10:58 
GeneralRe: Win2k/WinXP password authentication Pin
Blake Miller12-May-05 11:36
Blake Miller12-May-05 11:36 
GeneralRe: Win2k/WinXP password authentication Pin
David Crow13-May-05 2:05
David Crow13-May-05 2:05 
GeneralRe: Win2k/WinXP password authentication Pin
Blake Miller13-May-05 5:56
Blake Miller13-May-05 5:56 
GeneralProblem passing parameter in DLL writen in Visual Basic Pin
kstang11-May-05 3:55
kstang11-May-05 3:55 
GeneralError in CHKSTK.ASM Pin
houari_id11-May-05 3:39
houari_id11-May-05 3:39 

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.