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

C / C++ / MFC

 
GeneralRe: Abort Pin
BlackDice11-May-05 6:49
BlackDice11-May-05 6:49 
GeneralRe: Abort Pin
Anonymous11-May-05 6:53
Anonymous11-May-05 6:53 
GeneralRe: Abort Pin
David Crow11-May-05 7:22
David Crow11-May-05 7:22 
GeneralRe: Abort Pin
Anonymous11-May-05 7:43
Anonymous11-May-05 7:43 
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 
Hi,
I want to do something like this, but not sure what the behavior will be:
<br />
class A<br />
{<br />
  virtual void Init(int width, int height) = 0;<br />
};<br />
class B<br />
{<br />
  virtual void Init(int width = 640, int height = 480);<br />
};<br />
class C<br />
{<br />
  virtual void Init(int width = 800, int height = 600);<br />
};<br />

Does this mean if I say:
<br />
B *var1 = new B();<br />
A *pvar1 = &myB;<br />
pvar1->Init();  //call with default parameters 640,480<br />
pvar1->Init(320,240);  //call class B's implementation<br />

This will call the correct function?
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 
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 

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.