From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
04-11-2008 08:18 AM
04-14-2008 05:53 PM
04-15-2008 06:47 AM
Hello Wes,
Thank you for your reply. If I did not #include "nivision.h", it did compile because I hadn't added any IMAQ functions in the code. I use Microsoft Development Environment 2003 version 7.1.6030.
After playing around with the location of the #include's, I could pinpoint the problem more acurately: I have a class of my own that is named "Complex". I discovered that it interferes with the structure Complex_struct. As a workaround, I modified the nivision.h file, at line 787 and 1163. I replaced the structure name "Complex" with "ComplexNI":
(...)
typedef
struct Complex_struct {float r;
float i;
} ComplexNI; // } Complex; Line 787
(...)
typedef
union PixelValue_union { float grayscale;RGBValue rgb;
HSLValue hsl;
ComplexNI complex; // Complex complex; Line 1163
} PixelValue;
Until now, it works. Is it only because the functions I call do not use the Complex_struct? Am I running into trouble?
Thank you,
Sébastien Gilbert, Image Analysis Algorithm Developer, IBM Canada
04-15-2008 08:46 AM
04-15-2008 09:17 AM
Hello Wes,
Yes, I have been able to use Vision 5.0 with VS.Net 2003 in the past. The reason why it wouldn't compile is the introduction of this user-defined class "Complex" in a project, together with Vision 5.0. I managed to make them work together by slightly editing the file "nivision.h" (cf. my previous message). Does this change puts me at risk of other problems?
Sébastien