Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to export a CDialog with Ni Measurement Studio AppWizard

I would like to create an MFC DLL who include a CDialog
I would like to generate it with Ni Measurement Studio AppWizard.
0 Kudos
Message 1 of 2
(2,965 Views)
The MFC DLL project wizards for Visual C++ assume you don't want a user interface so they don't give you this option. You would just add a dialog to the project after you leave the wizard, just like you normally would in VC++.

1) Go to Resource View and right click on Resources and select Insert... then Dialog. That will add a dialog resource for you to use.

2) Then go to class wizard and generate a class for that dialog.

3) Then you just need to write the code to create a dialog object of that class and run it as a modal window in the function from which you want to launch the dialog. For example,

CTestDialog dlg;

int nResponse = dlg.DoModal();

Best Regards,

Chris Matthews
National Instruments
0 Kudos
Message 2 of 2
(2,965 Views)