如题:
class C
{
public:
int function()
{
if( NULL == this )
{
return INVALID_HANDLE;
}
}
};
void main()
{
C * ptr = NULL;
int result = ptr->function();
if( INVALID_HANDLE == result )
{
//stop the following procedure and throw exception
}
}