Motif and C++
Posted on 1997-06-19
I am trying to figure out Motif using C++. I am having a difficult time getting callbacks to work. I imagine there is some goofy pointer thing happening but I am not sure what.
I have a class MainMenu. In that class I create some xmPushButtonGadgets. Now I am trying to set up a call back
here is some code snippets
void open(Widget, XtPointer, XtPointer);
... Widget button;
I can not figure out what to pass in for the callback function name. Everything I have tried generates some goofy error. This generates the following error
"MainMenu.c++", line 67: error(3252): argument of type
"void (MainMenu::*)(Widget, XtPointer, XtPointer)" is incompatible
with parameter of type
"XtCallbackProc)(Widget, XtPointer, XtPointer)"
Thought you might be interested to know that I can rack up all the points I want in the advertiser quiz thing by just hitting the back button.