Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

I couldn't add an annotation at design time as well, it is always disappear

Dear Sir/Madam,
I'm using NI Developer Suite Feb 2002 to develop a VC++
project. The cwui.ocx version I'm using is 6.0.3.596. When I tried to add
an
annotation "m_graphControl.Annotations.Add();", it caused an error "can't
access item". Even your example, if I don't touch anything, it works. But
whenever I open the "Propty Pages" in design mode, even I don't do any
changes, just view it, then your example doesn't work, the same error
happened. Could you please give me some ideas? Thanks very much in
advance.


Best Regards,

Yingmai Guo
Manta Test Systems
Mississauga, ON
Canada
0 Kudos
Message 1 of 2
(3,071 Views)
Hello

This sounds like something might have become corrupted during the install. Has re-installing helped? We can force the contols to be re-installed if check to see they were removed. Try the following steps

Uninstall Measurement Studio. Do not reboot yet.

The user interface controls are located in the windows system32 folder and are in cwui.ocx. Check to see if this file still exist after the uninstall.
If this file does exist, you can delete it after you have unregistered it. Unregister the control by going to the command prompt and using regsvr32 /u , If it says "module not found", make sure you provide it the full path to the ocx file.
After it has been unregistered, you can safely delete the file.

Reboot now and try installing
Measurement Studio again.

I hope this helps

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,071 Views)