Psylixiri
Member
|
button func
im trying to call a button func from chr.h but i dont seem to be able to make it work
look i wrote
Code:
Button add_Strenght;
/******************************************************************************/
void add_strenght(Ptr)
{
if((add_strenght)addStrenght);
}
Code:
1>c:\documents and settings\anthony belisle\desktop\game_project\project_dark_abyss\source\inventory gui.cpp(10) : error C3867: 'Chr::addStrenght': function call missing argument list; use '&Chr::addStrenght' to create a pointer to member
intellisense identify it from chr.h of course...can someone tell me what doe that error mean?
(This post was last modified: 11-19-2011 09:52 PM by Psylixiri.)
|
|
11-19-2011 08:28 PM |
|
Driklyn
Member
|
RE: button func
Methods must be static:
Code:
static void add_strength(Ptr);
Btw, it's streng th.
|
|
11-19-2011 10:35 PM |
|