01-11-2007 12:54 PM
d:\AOSystem\AOBase2\AO_Support\Utilities\src\SysMatrixUI\xDisplay3DImage.h(25) : error C2501: 'SysMatrixUI::xDisplay3DImage::CNiReal64Matrix' : missing storage-class or type specifiers
d:\AOSystem\AOBase2\AO_Support\Utilities\src\SysMatrixUI\xDisplay3DImage.h(25) : error C2501: 'SysMatrixUI::xDisplay3DImage::myDMatrix' : missing storage-class or type specifiers
---------------
I tried changed declaration to : "NI::CNiReal64Matrix* myMatrix;" but then NI is not a name space
Tried to add that as well "using namespace NI;" to no avail.
-------------
d:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Include\NiColor.h(87) : error C2143: syntax error : missing ';' before '&'
d:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Include\NiColor.h(87) : error C2433: 'NI::CArchive' : 'friend' not permitted on data declarations
------------------
What am I doing wrong???
01-12-2007 06:45 PM
01-12-2007
07:54 PM
- last edited on
08-05-2026
09:33 AM
by
Content Cleaner
Hi stvnjns,
Measurement Studio includes native C++ data types such as CNiReal64Matrix and CNiReal64Vector (many other data types as well). In order for Visual Studio to recognize these data types, you need to either create a Measurement Studio C++ application (which will initially add the native Measurement Studio classes) or use the Measurement Studio Add/Remove Class Libraries Wizard (add classes to existing MFC projects). If you do not add the Measurement Studio classes to your MFC project, Visual Studio will not recognize these native Measurement Studio C++ data types and display errors.
Since it appears you will be using our user interface controls as well, make sure to add the appropriate Measurement Studio user interface classes (either by using the Class Libraries Wizard or by creating a Measurement Studio project from scratch) to your MFC project.
When you drop an ActiveX control onto a MFC form, a wizard generates wrapper classes that allow you to communicate with the control. We have created custom wrappers for our Measurement Studio ActiveX controls. So, if you don't add the Measurement Studio classes to your project, Visual Studio will not use those custom wrappers. Instead, Visual Studio will generate its own wrappers for our control. Our wrapper is preferred over the auto-generated MFC wrapper for a variety of reasons. For example, the custom wrapper allows you to call the control from any thread, and the custom wrapper automatically translates from ActiveX data types to Measurement Studio native C++ data types such as CNiReal64Vector.
Honestly, since your are just starting out with Measurement Studio, I would create a Measurement Studio C++ project from scratch with all the included classes. This way you will start off in the right direction without any conflicts.
Best Regards,