Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone tell me why this code doesn't run?

I downloaded the attached VC++ project from this web site, it compiles, but doesn't run (it dies inCDialog::DoModal). I think that it has something to do with the fact that the three display ActiveX controls can't be instantiated. Do I need to register them or something? Can anyone help?
Thanks.
0 Kudos
Message 1 of 6
(3,527 Views)
Hello,

Those activeX controls are installed and registered with IMAQ Vision software. I just opened it in my computer and it worked fine.

Best regards,

Yusuf C.
Applications Engineering
National Instruments
Message 2 of 6
(3,527 Views)
Thanks for looking at that for me.

Imaq vision is installed on my computer...i even uninstalled and reinstalled. When i open the VC++ app it gives me three errors that say "an activex control cannont be instantiated". I wonder how i can fix this problem.
0 Kudos
Message 3 of 6
(3,527 Views)
Does it tell you which ActiveX control?
0 Kudos
Message 4 of 6
(3,527 Views)
Well, i'm pretty sure that it is IDC_CWIMAQVIEWER1, IDC_CWIMAQVIEWER2, and IDC_CWIMAQVISION1 because when I open the the .rc file those three controls are just blue boxes with "ActiveX" printed in the middle of them. I figured that if they were instantiated correctly then they would show as controls. The application builds and links, but when the application runs, the domodal() call returns 0 and the application closes.

Also, None of the IMAQ Vision ActiveX controls show up in the "Insert Component and Controls" dialog in the VC++ IDE. Do you think Measurement Studio needs to be reinstalled??
0 Kudos
Message 5 of 6
(3,527 Views)
Well, everything worked after reinstalling imaq2.6 and measurement studio.

Thanks.
0 Kudos
Message 6 of 6
(3,527 Views)