The problem is just the came as in any other c++ program -- the global method must have an instance of the c++ class in order to call one of its methods, unless the c++ class method has been declared as static.
class foo
{
public:
static int static_method() { return 0; }
int another_method();
}
void gmethod()
{
foo par;
foo::static_method(); // call a static method
par.another_method(); // call a non-static method
}
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343