M
Marcin Kalicinski
Hi,
///////////////////////////////////////////////
// File Module.h
struct Object
{
static Object *GetObject(int i);
};
///////////////////////////////////////////////
// File Module.cpp
#include "Module.h"
#include <windows.h>
Object *Object::GetObject(int i)
{
return NULL;
}
Now invoke MS C++ compiler on module.cpp:
cl.exe module.cpp
And you get:
Module.cpp(7) : error C2039: 'GetObjectA' : is not a member of 'Object'
Module.h(5) : see declaration of 'Object'
Besides GetObject, they have also macro-redefined lots of other useful
names, such as 'DrawText' or 'MessageBox'. This is _really_ annoying.
Best regards,
Marcin
///////////////////////////////////////////////
// File Module.h
struct Object
{
static Object *GetObject(int i);
};
///////////////////////////////////////////////
// File Module.cpp
#include "Module.h"
#include <windows.h>
Object *Object::GetObject(int i)
{
return NULL;
}
Now invoke MS C++ compiler on module.cpp:
cl.exe module.cpp
And you get:
Module.cpp(7) : error C2039: 'GetObjectA' : is not a member of 'Object'
Module.h(5) : see declaration of 'Object'
Besides GetObject, they have also macro-redefined lots of other useful
names, such as 'DrawText' or 'MessageBox'. This is _really_ annoying.
Best regards,
Marcin