We help IT Professionals succeed at work.

Dialog based application VC++ programming

umaiyer
umaiyer asked
on
1,148 Views
Last Modified: 2013-11-20
Hi,

Here is the problem description.
I am working on VC++ dialog based application.
I have created 2 dialog box , IDD_DIALOG_ONE and IDD_DIALOG_TWO. I have placed few control (child controls on respective dialog box). In IDD_DIALOG_ONE  dialog box (one.cpp)i have a list control which will list the file names from the directory path which is set at different place and i have a function abc which will handle this. In   IDD_DIALOG_TWO (two.cpp) dialog box i have a button where in i will set the path to list the files. In OnButton function of two.cpp file i am not able to call the abc function of one.cpp. How to handle this problem. Can this be handled via user defined message and if so how can be done. If there is any alternate method please suggest.

Thanks in advance.
 
Comment
Watch Question

Freelance programmer / Consultant
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Dialog box are not created using "Create" function. instead using resource. so i have 2 different dialog box and respective class created for each. different  controls are placed on   each dialog box. is there a  way to send a user defined message to dialog 1 from dialog2. how to get the dialog 1 handle in dialog 2 (two.cpp) file.

AndyAinscowFreelance programmer / Consultant
CERTIFIED EXPERT

Commented:
>>>Dialog box are not created using "Create" function. instead using resource.

Irrelevant - as long as one dialog has a pointer to the other it can be done by the method I showed.
Forced accept.

Computer101
EE Admin

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*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.