Link to home
Start Free TrialLog in
Avatar of Sueca
Sueca

asked on

error C2065

I get all these errors when trying to compile my code

....source\method.cpp(394) : error C2039: 'THROUGH_FSP' : is not a member of 'SSIFBLib'
....source\method.cpp(397) : error C2039: 'ARB_EXT_REF' : is not a member of 'HPESGDLib'
....source\method.cpp(397) : error C2065: 'ARB_EXT_REF' : undeclared identifier
....source\method.cpp(401) : error C2039: 'ARB_ON' : is not a member of 'HPESGDLib'
....source\method.cpp(401) : error C2065: 'ARB_ON' : undeclared identifier
....source\method.cpp(402) : error C2039: 'MOD_ON' : is not a member of 'HPESGDLib'
....source\method.cpp(402) : error C2065: 'MOD_ON' : undeclared identifier
....source\method.cpp(408) : error C2039: 'SPECTRUM' : is not a member of 'FSIQLib'
....source\method.cpp(408) : error C2065: 'SPECTRUM' : undeclared identifier

etc ..

These constats are defined  in a COM object library and I have actually checked with the OLE viewer. Even the
Visual C++ Editor  (context recognizer) kan find these when writing the library.

I assume that it has something to do with the  settings of the project. But I havent been able to find out what
it is going wrong.

Can anybody help me ?


SUECA
ASKER CERTIFIED SOLUTION
Avatar of AlexFM
AlexFM

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Sueca
Sueca

ASKER

/ Instrument Drivers
#import "../DEPENDENCIES/Instrument Drivers/Hp34970.dll"
#import "../DEPENDENCIES/Instrument Drivers/HpESGD.dll"
#import "../DEPENDENCIES/Instrument Drivers/HP603x.dll"
#import "../DEPENDENCIES/Instrument Drivers/ML2438.dll"
#import "../DEPENDENCIES/Instrument Drivers/HP66000.dll"
#import "../DEPENDENCIES/Instrument Drivers/FSIQ.dll"
#import "../DEPENDENCIES/Instrument Drivers/Hp871x.dll"


It seems to be only the constants defined the ones not compiling ...
not the methods (at leat in this stage of compilation)

NOT COMPILING ...

SetRFWay(SSIFBLib::THROUGH_FSP);
m_ptrSigGen->SetArbReferenceSource(HPESGDLib::ARB_EXT_REF);
m_ptrSigGen->SetArbState(HPESGDLib::ARB_ON);

COMPILING ...

m_ptrSigGen->SetArbReconstructionFilter(0.0);
What is SSIFBLib:: - class name? namespace? Try without it. Search for THROUGH_FSP in the project directory and see how it is defined in compiler-generated h-file (output of #import directive).

And why did you accepted my answer?
Avatar of Sueca

ASKER


SSIFBLib :: is the COM-object library name but I have tried to use namespaces and
is the same problem

This is the definition in the h-file


/* [helpstring] */ const int THROUGH_FSP      =      1;

/* [helpstring] */ const int MONITOR_FSP      =      2;

/* [helpstring] */ const int FEEDBACK_FSP      =      3;

/* [helpstring] */ const int THROUGH_NA      =      4;

/* [helpstring] */ const int MONITOR_NA      =      5;

/* [helpstring] */ const int FEEDBACK_NA      =      6;

/* [helpstring] */ const int EC_OK      =      0;

/* [helpstring] */ const int EC_PIC_ALARM      =      -10009;

/* [helpstring] */ const int EC_PIC_WARMUP      =      -10008;

/* [helpstring] */ const int PA_SSM_2G      =      1;

/* [helpstring] */ const int PA_SSM_800      =      2;

/* [helpstring] */ const int PA_RBS3303      =      3;

-----

I dont know .. wasnt I supposed to accept ( I use this site very seldom )