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

Posted on 2009-02-19
Last Modified: 2013-11-20
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
Question by:kuldeepruhela
    1 Comment
    LVL 43

    Accepted Solution

    #include "resource.h"
    in the .cpp file you want to access the other dialog from.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
    Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now