05-19-2009 09:56 AM
Hi
I want to programmaticalyset the ROI of a CWIMAQViewer.
When i use CWMachineVision.SetupViewerForLineSelection(CWIMAQViewer) i have an exception thrown.
Exception : Impossible to CAST a AxCWIMAQViewer to CWIMAQViewer
Thanks for your help
05-20-2009 09:40 AM
05-20-2009 10:20 AM
Hi
Thanks for the response i will try...
Wh do we have 2 type AxcWimaqViewer which is the Active X object and the Type CWImaqViewer which is i suppose the handle of the AxCwimaqViewer
05-20-2009 10:24 AM
kikou -
This is a limitation of the current .NET API, which was directly converted from Visual Basic 6. In our upcoming release, we will have a native .NET API that should avoid many of these confusing issues.
Greg Stoll
Vision R&D
National Instruments