|
-
March 24th, 2011, 12:59 PM
#5
Re: Problem using a function from other file
 Originally Posted by GCDEF
Your question is clear, your understanding of the problem isn't.
You're trying to call a non-static member function of a class. To do that, you need an instantiation of the class - an object. You're trying to call the function as if it were static and it's clearly not defined that way. It's not a header/cpp issue, it's a not calling the function properly issue.
Can you post the code where you tried to create an object?
here we go
*****************************************
AgentActionComponent Obj;
Obj.getEntityPosition(m_characterID2);
*****************************************
it says no default constructor .............. on taking cursor to Obj .. i tried delcaring default constructor
but it doesnt work yet ...........
any suggestions
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|