Implicit int Type is Invalid
 
 
 

In standard C, you can declare variables and functions without mentioning their type, leaving the compiler to assume their type is int. Even in VC++ 7, although you cannot call a function without a prototype, you can still rely on the default int type. The following code shows an example of this:

static const NAME = 3;
MyClass::MyFunc()
{
    return FALSE;
}

With VC++ 8, the default int type is invalid. What we should code is as follows:

static const int NAME = 3;
BOOL MyClass::MyFunc()
{
    return FALSE;
}