Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 260
  • Last Modified:

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
0
kuldeepruhela
Asked:
kuldeepruhela
1 Solution
 
AndyAinscowCommented:
#include "resource.h"
in the .cpp file you want to access the other dialog from.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now