I just tried the rest of the casting operators and none of them work.
#define TESTDYNAMIC (dynamic_cast<Test*>(TESTBASE))
#define TESTREINTERPRET (reinterpret_cast<Test*>(TESTBASE))
#define TESTCONST (const_cast<Test*>(TESTBASE))
TESTDYNAMIC->TestFunction(); // Doesn't work, just goes to define
TESTREINTERPRET->TestFunction(); // Doesn't work, just goes to define
TESTCONST->TestFunction(); // Doesn't work, just goes to define
Regards,
Rasmus