17 years ago
Highlights
Community contributions featured17 years ago
Don't use &MyClass;::MyCallback, ie. just do this:Foo class;class.SetCallback(MyClass::MyCallback);Also, you'll need to make sure MyClass::MyCallback is a static class function.…
17 years ago
This should do it:typedef int (*RenderCB)();class Foo{public:void SetRenderCallback(RenderCB renderCB ){ m_renderCB = renderCB;}void Render(){ //call the callback m_renderCB();}…
17 years ago
18 years, 9 months ago
When you call the ChangeDisplaySettingsEx function, send it the CDS_TEST flag to test whether the mode is *really* supported. This will test the display switch without actually…
18 years, 9 months ago
Latest Activity
See all in DiscussionsDon't use &MyClass;::MyCallback, ie. just do this:Foo class;class.SetCallback(MyClass::MyCallback);Also, you'll need to make sure MyClass::MyCallback is a static class function.ie.class MyClass{ …
17 years ago
This should do it:typedef int (*RenderCB)();class Foo{public:void SetRenderCallback(RenderCB renderCB ){ m_renderCB = renderCB;}void Render(){ //call the callback m_renderCB();}private: RenderCB m_ren
17 years ago
When you call the ChangeDisplaySettingsEx function, send it the CDS_TEST flag to test whether the mode is *really* supported. This …
18 years, 9 months ago