Jack
2009-10-09 08:38:43 UTC
Dear everybody,
class CMesh
{
HRESULT LoadMesh(...);
};
cInternalParser::Parse(...)
{
CMesh::LoadMesh(...);
}
How can I call CMesh::LoadMesh from a global function? The code above is
reported with an error
"Can't call non-static member function" or something...
And then I tried to make the class member static, and the compiler still
complains. I am sorry I can't remember what the whole message says because
I have changed the methods to global to cheat.
If I want to wrap them back into a class, what should I do?
Thanks
Jack
class CMesh
{
HRESULT LoadMesh(...);
};
cInternalParser::Parse(...)
{
CMesh::LoadMesh(...);
}
How can I call CMesh::LoadMesh from a global function? The code above is
reported with an error
"Can't call non-static member function" or something...
And then I tried to make the class member static, and the compiler still
complains. I am sorry I can't remember what the whole message says because
I have changed the methods to global to cheat.
If I want to wrap them back into a class, what should I do?
Thanks
Jack