Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the type "_DCWIMAQViewer" from "TCWIMAQViewer" in Delphi?

Hi All!
 
Please help me to solve the problem!
 
For example:
In VB,the programme order is "CWMachineVision1.SetupViewerForRectangleSelection CWIMAQViewer1",It looks like very simple.
 
But In Delphi,I wrote "CWMachineVision1.SetupViewerForRectangleSelection(CWIMAQViewer1),It says  "Incompatible type _DCWIMAQViewer and TCWIMAQViewer" when compiling programme.
Then I tried to write "CWMachineVision1.SetupViewerForRectangleSelection(CWIMAQViewer1.ControlInterface) or CWMachineVision1.SetupViewerForRectangleSelection(CWIMAQViewer1.DefaultInterface)",Compile is passed but Running programme is failed.
 
So what can I do it?
 
Best regards
0 Kudos
Message 1 of 1
(2,996 Views)