<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CNiReal64Matrix undefined in Measurement Studio for VC++</title>
    <link>https://ni.lithium.com/t5/Measurement-Studio-for-VC/CNiReal64Matrix-undefined/m-p/462662#M4792</link>
    <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;Yes - I'm new to Meas.Std.&amp;nbsp; I have created project using VS2003 C++ (not Meas Studio proj).&amp;nbsp; I have successfully added NI plotting functions and they work fine.&amp;nbsp; Then tried to add CWGraph3d.&amp;nbsp; This worked and compiled okay. BUT then tried to add a&lt;FONT size="1"&gt;&amp;nbsp;"CNiReal64Matrix* myMatrix;" and it is not found/defined.&amp;nbsp; Started to get errors:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;
&lt;P&gt;d:\AOSystem\AOBase2\AO_Support\Utilities\src\SysMatrixUI\xDisplay3DImage.h(25) : error C2501: 'SysMatrixUI::xDisplay3DImage::CNiReal64Matrix' : missing storage-class or type specifiers&lt;/P&gt;
&lt;P&gt;d:\AOSystem\AOBase2\AO_Support\Utilities\src\SysMatrixUI\xDisplay3DImage.h(25) : error C2501: 'SysMatrixUI::xDisplay3DImage::myDMatrix' : missing storage-class or type specifiers&lt;/P&gt;
&lt;P&gt;---------------&lt;/P&gt;
&lt;P&gt;I tried changed declaration to : "NI::CNiReal64Matrix* myMatrix;"&amp;nbsp;&amp;nbsp; but then NI is not a name space &lt;/P&gt;
&lt;P&gt;Tried to add that as well "using namespace NI;" to no avail.&lt;/P&gt;
&lt;P&gt;-------------&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;I went back and tried to add class wizards using menu item "measurement Studio"-&amp;gt;"Add/Remove class wizards, to add the 3D call.&amp;nbsp; Then I started to get errors like:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;
&lt;P&gt;d:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Include\NiColor.h(87) : error C2143: syntax error : missing ';' before '&amp;amp;'&lt;/P&gt;
&lt;P&gt;d:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Include\NiColor.h(87) : error C2433: 'NI::CArchive' : 'friend' not permitted on data declarations&lt;/P&gt;
&lt;P&gt;------------------&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;What am I doing wrong??? &lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 11 Jan 2007 18:54:58 GMT</pubDate>
    <dc:creator>stvnjns</dc:creator>
    <dc:date>2007-01-11T18:54:58Z</dc:date>
    <item>
      <title>CNiReal64Matrix undefined</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-VC/CNiReal64Matrix-undefined/m-p/462662#M4792</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;Yes - I'm new to Meas.Std.&amp;nbsp; I have created project using VS2003 C++ (not Meas Studio proj).&amp;nbsp; I have successfully added NI plotting functions and they work fine.&amp;nbsp; Then tried to add CWGraph3d.&amp;nbsp; This worked and compiled okay. BUT then tried to add a&lt;FONT size="1"&gt;&amp;nbsp;"CNiReal64Matrix* myMatrix;" and it is not found/defined.&amp;nbsp; Started to get errors:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;
&lt;P&gt;d:\AOSystem\AOBase2\AO_Support\Utilities\src\SysMatrixUI\xDisplay3DImage.h(25) : error C2501: 'SysMatrixUI::xDisplay3DImage::CNiReal64Matrix' : missing storage-class or type specifiers&lt;/P&gt;
&lt;P&gt;d:\AOSystem\AOBase2\AO_Support\Utilities\src\SysMatrixUI\xDisplay3DImage.h(25) : error C2501: 'SysMatrixUI::xDisplay3DImage::myDMatrix' : missing storage-class or type specifiers&lt;/P&gt;
&lt;P&gt;---------------&lt;/P&gt;
&lt;P&gt;I tried changed declaration to : "NI::CNiReal64Matrix* myMatrix;"&amp;nbsp;&amp;nbsp; but then NI is not a name space &lt;/P&gt;
&lt;P&gt;Tried to add that as well "using namespace NI;" to no avail.&lt;/P&gt;
&lt;P&gt;-------------&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="2"&gt;I went back and tried to add class wizards using menu item "measurement Studio"-&amp;gt;"Add/Remove class wizards, to add the 3D call.&amp;nbsp; Then I started to get errors like:&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT size="1"&gt;
&lt;P&gt;d:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Include\NiColor.h(87) : error C2143: syntax error : missing ';' before '&amp;amp;'&lt;/P&gt;
&lt;P&gt;d:\Program Files\National Instruments\MeasurementStudioVS2003\VCNET\Include\NiColor.h(87) : error C2433: 'NI::CArchive' : 'friend' not permitted on data declarations&lt;/P&gt;
&lt;P&gt;------------------&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;What am I doing wrong??? &lt;/FONT&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 11 Jan 2007 18:54:58 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-VC/CNiReal64Matrix-undefined/m-p/462662#M4792</guid>
      <dc:creator>stvnjns</dc:creator>
      <dc:date>2007-01-11T18:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: CNiReal64Matrix undefined</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-VC/CNiReal64Matrix-undefined/m-p/463381#M4800</link>
      <description>&lt;DIV&gt;&lt;/DIV&gt;Hi stvnjns,&lt;BR /&gt;&lt;BR /&gt;I am currently looking into what resources need to be included in your project to reference this class. Since creating a Measurement Studio project resolves the issue, we need to find the differences between this and a basic project.&lt;BR /&gt;&lt;BR /&gt;Thank you for your patience!&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 13 Jan 2007 00:45:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-VC/CNiReal64Matrix-undefined/m-p/463381#M4800</guid>
      <dc:creator>James M</dc:creator>
      <dc:date>2007-01-13T00:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: CNiReal64Matrix undefined</title>
      <link>https://ni.lithium.com/t5/Measurement-Studio-for-VC/CNiReal64Matrix-undefined/m-p/463387#M4801</link>
      <description>&lt;FONT size="2"&gt;Hi stvnjns,&lt;BR /&gt;&lt;BR /&gt;Measurement Studio includes native C++ data types such as &lt;FONT color="#ff0000"&gt;CNiReal64Matrix&lt;/FONT&gt; and &lt;FONT color="#ff0000"&gt;CNiReal64Vector &lt;/FONT&gt;(many other data types as well).&amp;nbsp; 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 &lt;FONT color="#3300cc"&gt;Measurement Studio Add/Remove Class Libraries Wizard&lt;/FONT&gt; (add classes to existing MFC projects).&amp;nbsp; 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.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;When you drop an ActiveX control onto a MFC form, a wizard generates wrapper classes that allow you to communicate with the control.&amp;nbsp; 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.&amp;nbsp; Our wrapper is preferred &lt;/FONT&gt;&lt;SPAN class="noindex"&gt;&lt;FONT size="2"&gt;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 &lt;FONT color="#ff0000"&gt;CNiReal64Vector&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;BR /&gt;Refer to the &lt;SPAN class="title1"&gt;&lt;A href="http://digital.ni.com/public.nsf/websearch/3EAFF7FFD5A0D9EFC1256BE500664779?OpenDocument" target="_blank"&gt;Adding Measurement Studio Controls to an MFC Project in Microsoft Visual C++&lt;/A&gt; and &lt;/SPAN&gt;&lt;SPAN class="title1"&gt;&lt;A href="http://digital.ni.com/public.nsf/allkb/21317a68120876d1852563c400612b79" target="_blank"&gt;Loading Measurement Studio ActiveX Controls into Visual C++ 6.0&lt;/A&gt; KnowledgeBases for more in depth information.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;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.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;/SPAN&gt;&lt;/FONT&gt;</description>
      <pubDate>Sat, 13 Jan 2007 01:54:53 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/Measurement-Studio-for-VC/CNiReal64Matrix-undefined/m-p/463387#M4801</guid>
      <dc:creator>JonathanN</dc:creator>
      <dc:date>2007-01-13T01:54:53Z</dc:date>
    </item>
  </channel>
</rss>

