About Store Forum Documentation Contact



Post Reply 
button func
Author Message
Psylixiri Offline
Member

Post: #1
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
Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: button func
Methods must be static:

Code:
static void add_strength(Ptr);

Btw, it's strength.
11-19-2011 10:35 PM
Find all posts by this user Quote this message in a reply
Post Reply