How to pass the information from a dialog box to CDocument? For example, let's say I am importing a database into a program through a dialog box. As soon as I press OK button, the dialog box is closed, returning to the CDocument MDI application but, the "OK" has signalled the program to import the data. However am I supposed to do it?? Any experts there, pleaseee try to help! Many many thanks!