B
Bruce.
I am trying to call a member function through a pointer to it and can't get
the syntax exactly right. This compiles with an error C2064, term does not
evaluate to a function taking 1 argument.. Here is the smallest code that
will not compile:
class CTest {
void function( char* param );
};
void CTest::function( char* param )
{
// Do something with parm;
}
void ( CTest::*pFunction )( char* param );
int _tmain(int argc, _TCHAR* argv[])
{
char* value;
pFunction( value ); // **** C2064
}
I just can't figure out the right syntax. Can anyone help me? Thanks!
Bruce.
the syntax exactly right. This compiles with an error C2064, term does not
evaluate to a function taking 1 argument.. Here is the smallest code that
will not compile:
class CTest {
void function( char* param );
};
void CTest::function( char* param )
{
// Do something with parm;
}
void ( CTest::*pFunction )( char* param );
int _tmain(int argc, _TCHAR* argv[])
{
char* value;
pFunction( value ); // **** C2064
}
I just can't figure out the right syntax. Can anyone help me? Thanks!
Bruce.