hi, i want to get the text for a print statement from a separate class.
i want to get the text from my class MyClass, from the method getHelloWorld. you can find all the code in the attached zip. here is the most relevant few lines...
MyClass myClass;
int app::Loop (void)
{
agk:
rint( agk::ScreenFPS() );
agk:
rint( myClass.getHelloWorld );
agk::Sync();
return 0;
}
when i compile this i see the following error message:
1>template.cpp(27): error C3867: 'MyClass::getHelloWorld': non-standard syntax; use '&' to create a pointer to member
how can i fix this?
Thanks,
Sal
PS: if you're wondering why i want to do this, its because i want to put some of my logic into other classes / cpp files rather than having 1 really big template.cpp file.