Search Results

Search found 2 results on 1 pages for 'camelord'.

Page 1/1 | 1 

  • Function Pointer from base class

    - by camelord
    Hi there, i need a Function Pointer from a base class. Here is the code: class CActionObjectBase { ... void AddResultStateErrorMessage( const char* pcMessage , ULONG iResultStateCode); ... } CActionObjectCalibration( ): CActionObjectBase() { ... m_Calibration = new CCalibration(&CActionObjectBase::AddResultStateErrorMessage); } class CCalibration { ... CCalibration(void (CActionObjectBase::* AddErrorMessage)(const char*, ULONG )); ... void (CActionObjectBase::* m_AddErrorMessage)(const char*, ULONG ); } Inside CCalibration in a Function occurs the Error. I try to call the Function Pointer like this: if(m_AddErrorMessage) { ... m_AddErrorMessage("bla bla", RSC_FILE_ERROR); } The Problem is, that I cannot compile. The Error Message says something like: error C2064: Expression is no Function, that takes two Arguments. What is wrong? regards camelord

    Read the article

  • switching to C++11

    - by camelord
    Hi there, first of all, sorry for my englisch. I am from germany. We are going to start a long lasting project and use C++ as programming language. I read of C++0x is gonna come out 2011 so its called C++11. When C++11 comes out, we will still be developing the software of the project. Is it possible to use allready any features of the new C++ standard to able to - code faster than with the old C++ and - switch easily when the new standard arrives? best regards camelord

    Read the article

1