NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Error while compiling SimpleMGCOperatorInterface sample

Hi,

When building the "SimpleMGCOperatorInterface" VC++ project (from NI
Example Programs Database), the following errors occurs :
--------------------Configuration: SimpleMFCOperatorInterface - Win32
Release--------------------
Compiling...
SimpleMFCOperatorInterfaceDlg.cpp
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(138)
: error C2039: 'PropOption_InsertIfMissing' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(138)
: error C2065: 'PropOption_InsertIfMissing' : undeclared identifier
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(141)
: error C2039: 'PropOption_InsertIfMissing' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(409)
: error C2039: 'OpenFile_UseAbsolutePath' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(409)
: error C2065: 'OpenFile_UseAbsolutePath' : undeclared identifier
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(428)
: error C2039: 'GetSeqFile_OperatorInterfaceFlags' : is not a member of
'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(428)
: error C2065: 'GetSeqFile_OperatorInterfaceFlags' : undeclared
identifier
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(613)
: error C2039: 'ExecTypeMask_Normal' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(613)
: error C2065: 'ExecTypeMask_Normal' : undeclared identifier
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(715)
: error C2039: 'Priv_Terminate' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(715)
: error C2065: 'Priv_Terminate' : undeclared identifier
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(784)
: error C2039: 'Priv_Execute' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(784)
: error C2065: 'Priv_Execute' : undeclared identifier
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(854)
: error C2039: 'Priv_Execute' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(856)
: error C2039: 'Priv_RunAnySequence' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(856)
: error C2065: 'Priv_RunAnySequence' : undeclared identifier
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(987)
: error C2039: 'Priv_ConfigApp' : is not a member of 'TS'
C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(987)
: error C2065: 'Priv_ConfigApp' : undeclared identifier
Error executing cl.exe.

Simple.exe - 18 error(s), 0 warning(s)

I am using
- NT4 (french version) + SP5
- VC++6 + SP3
- TestStand 1.02

Any suggestions would be appreicated.

Thanks,
--
Denis PARNALAND - SysAware
187 avenue de LouisVille - Le Trident
34080 Montpellier
TEL: +33 (0)4.6710.4322 FAX: +33(0)4.6710.4323
denis.parnaland@sysaware.com
0 Kudos
Message 1 of 3
(4,154 Views)
It appears that your program is not finding User Defined types located in
the tsapimfc.h file which should be located in the Teststand (TS)\API\MFC
directory. Be sure that you program is including this file and that the
user defined types are there.

The SimpleMFCOperator interface which I downloaded from the NI web site had
a simple project set up that I did not need to make but, one alteration.
The files that were in the source section of the Project were SimpleMFCOperatorInterface.cpp,
SimpleMFCOperatorInterfaceDlg.cpp, StdAfx.cpp, and tsapimfc.cpp. The files
in the header section were the same as those in the source but with the .h
extention, and a resource.h file. The resource files were SimpleMFCOperatorInterface.ico,
.rc2, and .rc.

Although it appeared correctly to me, I need to change the #include "tsapimfc.h"
to explicitly point to the file which on my computer required the following
modification: #include "..\..\..\api\mfc\tsapimfc.h". Another alternative
would be to discard the tsapimfc files that are located in your project and
then, using windows explorer, copy them to the directory where your other
project files exist. Then using the MFC Project menu selection add those
files back to the project.

I hope some of this may have helped.

Denis Parnaland wrote:
>Hi,>>When building the "SimpleMGCOperatorInterface" VC++ project (from NI>Example
Programs Database), the following errors occurs :>--------------------Configuration:
SimpleMFCOperatorInterface - Win32>Release-------------------->Compiling...>SimpleMFCOperatorInterfaceDlg.cpp>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(138)>:
error C2039: 'PropOption_InsertIfMissing' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(138)>:
error C2065: 'PropOption_InsertIfMissing' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(141)>:
error C2039: 'PropOption_InsertIfMissing' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(409)>:
error C2039: 'OpenFile_UseAbsolutePath' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(409)>:
error C2065: 'OpenFile_UseAbsolutePath' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(428)>:
error C2039: 'GetSeqFile_OperatorInterfaceFlags' : is not a member of>'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(428)>:
error C2065: 'GetSeqFile_OperatorInterfaceFlags' : undeclared>identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(613)>:
error C2039: 'ExecTypeMask_Normal' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(613)>:
error C2065: 'ExecTypeMask_Normal' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(715)>:
error C2039: 'Priv_Terminate' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(715)>:
error C2065: 'Priv_Terminate' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(784)>:
error C2039: 'Priv_Execute' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(784)>:
error C2065: 'Priv_Execute' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(854)>:
error C2039: 'Priv_Execute' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(856)>:
error C2039: 'Priv_RunAnySequence' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(856)>:
error C2065: 'Priv_RunAnySequence' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(987)>:
error C2039: 'Priv_ConfigApp' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(987)>:
error C2065: 'Priv_ConfigApp' : undeclared identifier>Error executing cl.exe.>>Simple.exe
- 18 error(s), 0 warning(s)>>I am using>- NT4 (french version) + SP5>- VC++6
+ SP3>- TestStand 1.02>> Any suggestions would be appreicated.>>Thanks,>-->Denis
PARNALAND - SysAware>187 avenue de LouisVille - Le Trident>34080 Montpellier>TEL:
+33 (0)4.6710.4322 FAX: +33(0)4.6710.4323>denis.parnaland@sysaware.com>>
0 Kudos
Message 2 of 3
(4,154 Views)
I solve the problem !
We must install VC++ SP3 in french AND in English.
If we do not, some files are not installed.
Denis

Sandy Cook wrote:

> It appears that your program is not finding User Defined types located in
> the tsapimfc.h file which should be located in the Teststand (TS)\API\MFC
> directory. Be sure that you program is including this file and that the
> user defined types are there.
>
> The SimpleMFCOperator interface which I downloaded from the NI web site had
> a simple project set up that I did not need to make but, one alteration.
> The files that were in the source section of the Project were SimpleMFCOperatorInterface.cpp,
> SimpleMFCOperatorInterfaceDlg.cpp, StdAfx.cpp, and tsapimfc.cpp. The files
> in the header section were the same as those in the source but with the .h
> extention, and a resource.h file. The resource files were SimpleMFCOperatorInterface.ico,
> rc2, and .rc.
>
> Although it appeared correctly to me, I need to change the #include "tsapimfc.h"
> to explicitly point to the file which on my computer required the following
> modification: #include "..\..\..\api\mfc\tsapimfc.h". Another alternative
> would be to discard the tsapimfc files that are located in your project and
> then, using windows explorer, copy them to the directory where your other
> project files exist. Then using the MFC Project menu selection add those
> files back to the project.
>
> I hope some of this may have helped.
>
> Denis Parnaland wrote:
> >Hi,>>When building the "SimpleMGCOperatorInterface" VC++ project (from NI>Example
> Programs Database), the following errors occurs :>--------------------Configuration:
> SimpleMFCOperatorInterface - Win32>Release-------------------->Compiling...>SimpleMFCOperatorInterfaceDlg.cpp>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(138)>:
> error C2039: 'PropOption_InsertIfMissing' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(138)>:
> error C2065: 'PropOption_InsertIfMissing' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(141)>:
> error C2039: 'PropOption_InsertIfMissing' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(409)>:
> error C2039: 'OpenFile_UseAbsolutePath' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(409)>:
> error C2065: 'OpenFile_UseAbsolutePath' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(428)>:
> error C2039: 'GetSeqFile_OperatorInterfaceFlags' : is not a member of>'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(428)>:
> error C2065: 'GetSeqFile_OperatorInterfaceFlags' : undeclared>identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(613)>:
> error C2039: 'ExecTypeMask_Normal' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(613)>:
> error C2065: 'ExecTypeMask_Normal' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(715)>:
> error C2039: 'Priv_Terminate' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(715)>:
> error C2065: 'Priv_Terminate' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(784)>:
> error C2039: 'Priv_Execute' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(784)>:
> error C2065: 'Priv_Execute' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(854)>:
> error C2039: 'Priv_Execute' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(856)>:
> error C2039: 'Priv_RunAnySequence' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(856)>:
> error C2065: 'Priv_RunAnySequence' : undeclared identifier>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(987)>:
> error C2039: 'Priv_ConfigApp' : is not a member of 'TS'>C:\ts\Examples\OperatorInterfaces\SimpleMFC\SimpleMFCOperatorInterfaceDlg.cpp(987)>:
> error C2065: 'Priv_ConfigApp' : undeclared identifier>Error executing cl.exe.>>Simple.exe
> - 18 error(s), 0 warning(s)>>I am using>- NT4 (french version) + SP5>- VC++6
> + SP3>- TestStand 1.02>> Any suggestions would be appreicated.>>Thanks,>-->Denis
> PARNALAND - SysAware>187 avenue de LouisVille - Le Trident>34080 Montpellier>TEL:
> +33 (0)4.6710.4322 FAX: +33(0)4.6710.4323>denis.parnaland@sysaware.com>>

--
Denis PARNALAND - SysAware
187 avenue de LouisVille - Le Trident
34080 Montpellier FRANCE
TEL: +33 (0)4.6710.4322 FAX: +33(0)4.6710.4323
denis.parnaland@sysaware.com
0 Kudos
Message 3 of 3
(4,154 Views)