Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Controls on a Dialog Work Only Once!

I have a ComponentWorks / or ComponentWorks++ control on one of my dialogs in Microsoft Visual C++. When I popup this dialog (with CDialog::DoModal), everything works fine. However, when I popup the dialog a second time, the controls don't seem to work. What am I doing wrong?

--Chris
0 Kudos
Message 1 of 2
(5,032 Views)
Chris:

Actually, you may be doing nothing wrong. Measurement Studio 1.0 has an issue with using controls in this fashion; this has been fixed in Measurement Studio 1.0.1. Users of Measurement Studio 1.0 can request a complimentary copy of Measurement Studio 1.0.1, and I strongly recommend this! The ComponentWorks++ documentation has improved so much between these versions that this benefit alone may warrant the trouble of upgrading. If you are interested in upgrading, feel free to contact your National Instruments Sales Representative, go to our Online Upgrade Advisor (http://www.ni.com/advisor), or call National Instruments and ask to be connected with Sales.

As a workaround, you can instantiate a new version of your class everytime you call CDialog::DoModal().

Bes
t Regards,

Chris Wood
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(5,032 Views)