Click here to Skip to main content
15,907,687 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to check whether a char pointer is an empty string? Pin
krmed17-Dec-09 11:34
krmed17-Dec-09 11:34 
GeneralRe: How to check whether a char pointer is an empty string? Pin
Tim Craig17-Dec-09 17:54
Tim Craig17-Dec-09 17:54 
AnswerRe: How to check whether a char pointer is an empty string? Pin
CPallini17-Dec-09 11:01
mveCPallini17-Dec-09 11:01 
AnswerRe: How to check whether a char pointer is an empty string? Pin
Fatbuddha 117-Dec-09 22:14
Fatbuddha 117-Dec-09 22:14 
QuestionNo Idea why the linker is giving error Pin
Larry Mills Sr17-Dec-09 9:36
Larry Mills Sr17-Dec-09 9:36 
AnswerRe: No Idea why the linker is giving error Pin
krmed17-Dec-09 10:39
krmed17-Dec-09 10:39 
GeneralRe: No Idea why the linker is giving error Pin
Larry Mills Sr18-Dec-09 4:48
Larry Mills Sr18-Dec-09 4:48 
GeneralRe: No Idea why the linker is giving error Pin
krmed18-Dec-09 5:02
krmed18-Dec-09 5:02 
Including the header only provides the declaration of the class. Non-static members do not actually exist except within an instance of the class itself.

You probably already have a document instance (CYourAppDoc) somwhere, so you need to provide a pointer to that existing instance in order to use its methods. The existing instance contains all of the variables (with their appropriate values), so if you were to create a new instance in your propert page class, it would be a different instance with different values.

One way this is done with a dialog box would be to have a button that you click to create the dialog and the handler for that button is in the document. The dialog header file might contain something like
CYourAppDoc* m_pMyDocPtr;
Then when the button is clicked the handler (in the doc class) might have something like this:
CMyDialog myDlg;
myDlg.m_pMyDocPtr = this;
myDlg.DoModal()

Now in the dialog, you can access the doc data and methods by using
m_pDocPtr->DocFunction1();


Hope that helps.

Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193

GeneralRe: No Idea why the linker is giving error Pin
Larry Mills Sr18-Dec-09 5:29
Larry Mills Sr18-Dec-09 5:29 
GeneralRe: No Idea why the linker is giving error Pin
krmed18-Dec-09 5:38
krmed18-Dec-09 5:38 
GeneralRe: No Idea why the linker is giving error Pin
Larry Mills Sr18-Dec-09 5:42
Larry Mills Sr18-Dec-09 5:42 
QuestionError Pin
lgatcodeproject17-Dec-09 3:12
lgatcodeproject17-Dec-09 3:12 
AnswerRe: Error Pin
Abhi Lahare17-Dec-09 3:27
Abhi Lahare17-Dec-09 3:27 
AnswerRe: Error Pin
Fatbuddha 117-Dec-09 3:28
Fatbuddha 117-Dec-09 3:28 
AnswerRe: Error Pin
Stephen Hewitt17-Dec-09 3:32
Stephen Hewitt17-Dec-09 3:32 
JokeRe: Error Pin
Fatbuddha 117-Dec-09 3:37
Fatbuddha 117-Dec-09 3:37 
AnswerRe: Error Pin
transoft17-Dec-09 7:00
transoft17-Dec-09 7:00 
AnswerRe: Error Pin
Y_miao17-Dec-09 12:45
Y_miao17-Dec-09 12:45 
GeneralRe: Error Pin
Tim Craig17-Dec-09 18:01
Tim Craig17-Dec-09 18:01 
AnswerRe: Error Pin
Maxwell Chen17-Dec-09 21:49
Maxwell Chen17-Dec-09 21:49 
QuestionHow to add preview for my own filetype in Windows XP explorer? Pin
Erik17-Dec-09 2:09
Erik17-Dec-09 2:09 
AnswerRe: How to add preview for my own filetype in Windows XP explorer? Pin
KarstenK17-Dec-09 3:05
mveKarstenK17-Dec-09 3:05 
GeneralRe: How to add preview for my own filetype in Windows XP explorer? Pin
Erik10-Jan-10 22:46
Erik10-Jan-10 22:46 
GeneralRe: How to add preview for my own filetype in Windows XP explorer? Pin
KarstenK11-Jan-10 0:02
mveKarstenK11-Jan-10 0:02 
AnswerRe: How to add preview for my own filetype in Windows XP explorer? Pin
Code-o-mat17-Dec-09 4:36
Code-o-mat17-Dec-09 4: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.