Click here to Skip to main content
15,887,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I pass a value to a class? Pin
DanYELL4-Jan-04 8:33
DanYELL4-Jan-04 8:33 
GeneralRe: How do I pass a value to a class? Pin
Bo Hunter4-Jan-04 8:38
Bo Hunter4-Jan-04 8:38 
GeneralRe: How do I pass a value to a class? Pin
Bob Stanneveld4-Jan-04 23:16
Bob Stanneveld4-Jan-04 23:16 
AnswerRe: How do I pass a value to a class? Pin
Michael Dunn4-Jan-04 8:56
sitebuilderMichael Dunn4-Jan-04 8:56 
AnswerRe: How do I pass a value to a class? Pin
Bo Hunter4-Jan-04 9:05
Bo Hunter4-Jan-04 9:05 
GeneralRe: How do I pass a value to a class? Pin
DanYELL4-Jan-04 9:43
DanYELL4-Jan-04 9:43 
GeneralRe: How do I pass a value to a class? Pin
PJ Arends4-Jan-04 10:07
professionalPJ Arends4-Jan-04 10:07 
GeneralRe: How do I pass a value to a class? Pin
DanYELL4-Jan-04 15:04
DanYELL4-Jan-04 15:04 
Seems so obvious now (and it works). I appreciate the reply. I kept
wanting to ignore the 'CWnd* pParent = NULL' part.

One last question. For this part of the constructor:

CFormatname::CFormatname(CWnd* pParent /*=NULL*/, CString mystr)
: CDialog(CFormatname::IDD, pParent)
{
//{{AFX_DATA_INIT(CFormatname)
//}}AFX_DATA_INIT

name = mystr;
}

what exactly is CFormatname::IDD? What am I passing to CDialog?
pParent is just NULL and I know what :: means, but CFormatname::IDD
doesn't make sense.

Confused | :confused:

GeneralRe: How do I pass a value to a class? Pin
Tim Smith4-Jan-04 15:41
Tim Smith4-Jan-04 15:41 
AnswerRe: How do I pass a value to a class? Pin
Shenthil4-Jan-04 20:52
Shenthil4-Jan-04 20:52 
Questionwhat is the definitive version of VC++ Pin
Ger Hayden4-Jan-04 7:15
Ger Hayden4-Jan-04 7:15 
AnswerRe: what is the definitive version of VC++ Pin
User 66584-Jan-04 7:58
User 66584-Jan-04 7:58 
AnswerRe: what is the definitive version of VC++ Pin
Michael Dunn4-Jan-04 8:57
sitebuilderMichael Dunn4-Jan-04 8:57 
Generalinvalid integer constant expression Pin
ABean4-Jan-04 6:47
ABean4-Jan-04 6:47 
GeneralRe: invalid integer constant expression Pin
PJ Arends4-Jan-04 10:48
professionalPJ Arends4-Jan-04 10:48 
GeneralRe: invalid integer constant expression Pin
ABean5-Jan-04 6:43
ABean5-Jan-04 6:43 
QuestionWinsock? Pin
Stan the man4-Jan-04 6:35
Stan the man4-Jan-04 6:35 
GeneralToolBar close Pin
Burl D4-Jan-04 6:24
Burl D4-Jan-04 6:24 
GeneralRe: ToolBar close Pin
PJ Arends4-Jan-04 10:55
professionalPJ Arends4-Jan-04 10:55 
GeneralGDI drawing in layers Pin
mirano4-Jan-04 5:52
mirano4-Jan-04 5:52 
GeneralRe: GDI drawing in layers Pin
PJ Arends4-Jan-04 9:30
professionalPJ Arends4-Jan-04 9:30 
GeneralSending a packet using PostMessage Pin
__Cerb4-Jan-04 4:38
__Cerb4-Jan-04 4:38 
GeneralRe: Sending a packet using PostMessage Pin
Stefan Pedersen4-Jan-04 4:46
Stefan Pedersen4-Jan-04 4:46 
GeneralRe: Sending a packet using PostMessage Pin
__Cerb4-Jan-04 5:33
__Cerb4-Jan-04 5:33 
GeneralRe: Sending a packet using PostMessage Pin
Gary R. Wheeler4-Jan-04 5:30
Gary R. Wheeler4-Jan-04 5:30 

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.