I am having a problem trying to get a callback function to work within a class. Its from the DXUT Direct X source code example. I'm basicly trying to get a callback to call a function within a class. I'm stuck, been reading around looking at all these pointers to functions and I'm confused.
g_SampleUI.SetCallback( OnGUIEvent ); error C3867: 'SETTINGSPAGE::OnGUIEvent': function call missing argument list; use '&SETTINGSPAGE::OnGUIEvent' to create a pointer to member
Now the function is from DXUT and it wants.. PCALLBACKDXUTGUIEVENT pCallback
It worked fine with just g_SampleUI.SetCallback( OnGUIEvent ) outside of a class. This is where I fail with pointers, damn confusing things.
Oh and OnGUIEvent is defined in the same class.