Click here to Skip to main content
15,896,428 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCD Drive functions Pin
dipuks10-Jul-09 7:27
dipuks10-Jul-09 7:27 
AnswerRe: CD Drive functions Pin
David Crow10-Jul-09 8:00
David Crow10-Jul-09 8:00 
Questiondefault parameters - functions Pin
john john mackey10-Jul-09 6:41
john john mackey10-Jul-09 6:41 
AnswerRe: default parameters - functions Pin
krmed10-Jul-09 7:01
krmed10-Jul-09 7:01 
GeneralRe: default parameters - functions Pin
john john mackey10-Jul-09 7:34
john john mackey10-Jul-09 7:34 
GeneralRe: default parameters - functions Pin
David Crow10-Jul-09 8:02
David Crow10-Jul-09 8:02 
AnswerRe: default parameters - functions Pin
josda100010-Jul-09 8:05
josda100010-Jul-09 8:05 
GeneralRe: default parameters - functions Pin
John R. Shaw10-Jul-09 8:09
John R. Shaw10-Jul-09 8:09 
The second one would be the prototype and the first one would be the actual function.
void MyFn(int nDefault=2); // prototype
void MyFn(int nDefault/*=2*/)   // function
{ ... }

The only reason for applying the second one to the functions is so that it reflects the prototype (a.k.a. documents prototype parameter).

INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: default parameters - functions Pin
rew´RaZiel17-Jul-09 21:40
rew´RaZiel17-Jul-09 21:40 
QuestionCreate 16 bit process under 32bit using CreateProcess Pin
RoryODonnell10-Jul-09 4:41
RoryODonnell10-Jul-09 4:41 
Questioncrashed ( i CSimpleStringT ) when new control are added to dialog Pin
Bilge Kaan10-Jul-09 4:02
Bilge Kaan10-Jul-09 4:02 
QuestionRe: crashed ( i CSimpleStringT ) when new control are added to dialog Pin
David Crow10-Jul-09 4:33
David Crow10-Jul-09 4:33 
AnswerRe: crashed ( i CSimpleStringT ) when new control are added to dialog Pin
Bilge Kaan10-Jul-09 5:04
Bilge Kaan10-Jul-09 5:04 
QuestionRe: crashed ( i CSimpleStringT ) when new control are added to dialog Pin
David Crow10-Jul-09 5:28
David Crow10-Jul-09 5:28 
QuestionLinking error LNK2019 while building DLL Pin
Member 154408710-Jul-09 2:37
Member 154408710-Jul-09 2:37 
AnswerRe: Linking error LNK2019 while building DLL [modified] Pin
Adam Roderick J10-Jul-09 2:50
Adam Roderick J10-Jul-09 2:50 
AnswerRe: Linking error LNK2019 while building DLL Pin
Stuart Dootson10-Jul-09 4:14
professionalStuart Dootson10-Jul-09 4:14 
QuestionImage list number associated with the column comes wrong while using Header_GetItem Pin
mutpan10-Jul-09 1:44
mutpan10-Jul-09 1:44 
QuestionScroll view background color Pin
Nikesh Jagtap10-Jul-09 0:53
Nikesh Jagtap10-Jul-09 0:53 
AnswerRe: Scroll view background color Pin
Chandrasekharan P10-Jul-09 1:05
Chandrasekharan P10-Jul-09 1:05 
QuestionSetCursorPos() not working Pin
KASR19-Jul-09 22:48
KASR19-Jul-09 22:48 
AnswerRe: SetCursorPos() not working [modified] Pin
Adam Roderick J10-Jul-09 2:35
Adam Roderick J10-Jul-09 2:35 
Questionswitch on multi threading in visual studio using boost libraries Pin
minkowski9-Jul-09 21:32
minkowski9-Jul-09 21:32 
AnswerRe: switch on multi threading in visual studio using boost libraries Pin
Stuart Dootson9-Jul-09 22:24
professionalStuart Dootson9-Jul-09 22:24 
GeneralRe: switch on multi threading in visual studio using boost libraries Pin
minkowski10-Jul-09 0:37
minkowski10-Jul-09 0:37 

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.