How to Set text into a Dialog Item from Outside of that Dialog class

hi All
        i have a SDI Application in VC++6.0/MFC in which i am using a DialogBox with SavingDlg Class. The DialogBox has two CEdit Control, Now i want to Set or Get the Value from or of the CEdit from Outside the SavingDlg Class.

how to Do it

Right Now i am using Following concept But it occur error

Right now i am declaring  SavingDlg *saveDlgThisPtr;   pointer in SavingDlg.C++ Files and Assign this pointer into this.

And Now in the file where i want to use it i decare it using  extern SavingDlg *saveDlgThisPtr;
and using in this file but it dispaly error that IDD_SAVEDLG is undeclared identifier

 IDD_SAVEDLG is basically SavingDlg Dialog ID
kuldeepruhelaAsked:
Who is Participating?
 
AndyAinscowFreelance programmer / ConsultantCommented:
#include "resource.h"
in the .cpp file you want to access the other dialog from.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.