C2511 error overloaded member function not found in class

  • Thread starter Thread starter pnadathur
  • Start date Start date
P

pnadathur

Guest
Here is the class definition in GPSTFACommand.h file:

class COMMONDEVUTIL_API CGPSTFACommand
{
CDeviceComm m_DeviceComm;
bool m_bIsResetNodeSent;
public:
CGPSTFACommand(short nTFAModuleId);
virtual ~CGPSTFACommand();
void SetReinitialize() { m_bIsResetNodeSent = m_bInitialized = false; }
short Register(short nDeviceId, DWORD dwDevThreadId); // Register Device ID
short UnRegister(short nDeviceId); // Unregister Device ID
void StartListening(); // start listener thread
void StopListening();
short Decode(CSmartBuffer& packet, DWORD dwPacketSize); // Decode (data received from listener)

private:
//--------------------------------------------------------------------------
// member variable area
// this Command object
short m_nTFAModuleId; // CGPSTFACommand[] array number (0 or 1)
// Exception information array
DWORD m_arrdwExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS];
bool m_bInitialized; // Received Setting Completion (only board function)
bool m_bInitializing; // During initializing

};


In the GPSTFACommand.cpp file,

short CGPSTFACommand::Decode(byte* packet, DWORD dwPacketSize)

gives error C2511: 'short CGPSTFACommand::Decode(byte *,DWORD)' : overloaded member function not found in 'CGPSTFACommand'

I am also getting two errors following this, in the same cpp file:

void CGPSTFACommand::RegisterREPM(DWORD dwDevThreadId)

error C2039: 'RegisterREPM' : is not a member of 'CGPSTFACommand'

error C2065: 'm_dwDeviceThreadIDs' : undeclared identifier

I tried searching for these errors, but need help with these.

Thank you,

Priya

Continue reading...
 
Back
Top