Dialog based application VC++ programming
Posted on 2007-10-13
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.