Re: [Dev-C++] Static members for callbacks
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Matthew H. <mhi...@sy...> - 2002-07-26 22:26:43
|
>
>
>I tried creating a class to test this, and I discovered that it's true...
>why?
>
>I tried callback = this->internal, testclass::internal, this::internal...
>yup, I got pret-ty desparate.
>
>I also tried casting the method, using type-casting (C-style), static_cast
>and dynamic_cast to a pointer, but it doesn't work. I get an error about
>converting to a pointer and compilation stops.
>
>
>
I'm gathering that you are still looking to do this???
Anyhow, here's some pointers that may be of assistance. (If I
figure anything out... it's yours! 8-)
{Watch out for wordwrap... hey, it could happen...}
http://www.function-pointer.org/CCPP/callback/callback.html
http://cscene.org/topics/misc/cs7-04.xml.html
http://gethelp.devx.com/techtips/cpp_pro/10min/10min0800.asp
Those should get you started.
|