We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

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

kuldeepruhela
on
Medium Priority
279 Views
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
Comment
Watch Question

Freelance programmer / Consultant
CERTIFIED EXPERT
Commented:
#include "resource.h"
in the .cpp file you want to access the other dialog from.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.