Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Using VC++.net and nivision and get compiler error 'Image' ambiguous symbol

Have firewire camera that works fine with unmanaged C++ code.

Now I need to use same camera and nivision software with my HMI.
The HMI is Visual C++.net form with managed code. The compiler doesn't
like the declareation

Image *myPic;

Compiler error is:

error C2872 'Image' ambiguous symbol.

It appears that the 'Image' type is declared in another library. Is there a fix?
0 Kudos
Message 1 of 2
(3,188 Views)
Figured it out. Image can either be renamed in the nivision.h header file or the variable declaration can use the original name Image_struct.
0 Kudos
Message 2 of 2
(3,184 Views)