Original Post
Howdy, folks. Just here to ask a simple question. I''m creating a class for a button in DX, and the way I would like to do it would be to pass in a defined function to operate the button. It looks something like this.
typedef class BUTTON
{
void *Execute;
inline void BUTTON();
} Button;
inline void GUI::BUTTON::BUTTON(void *Func())
{
Execute = Func;
}
Is this basically how you do it. How could I get the code to work. Thanks for the help.