Boost logo

Boost Users :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2005-05-05 16:29:31


I would like to know if it is possible to generate a number of static
functions that redirect to some other function inside the class,
taking an object as void * and is casted to the object (that it knows
which is), and be possible to take the address of such functions...

well, i dont have a good english, so I will reexplain:

For the ones that already are familiar with Win32 GUI:
I must create a static function to be the DialogProc of a window, the
problem is... I'm creating some property sheets to be used with one
class, and I would like to make it automatic the redirection from the
static function to some other method inside the class, that isnt
static... and I would like to create a class, probably with CRTP to
say to it to create the functions that would redirect to me, saying
how much functions would that be, and make it creates the codes that
gives to windows the static functions addresses and create the
functions that would redirect....
Then I just needed to create my functions that they redirect to me...
making it a LOT easier to me, and would make my code a lot more
concise...

Sorry for the off-topic... But I think you would be the best ones to
direct this question....

Thanks for the attention,
Felipe Magno de Almeida

-- 
   Felipe Magno de Almeida
   UIN: 2113442
    email: felipe.m.almeida+spam at gmail com felipe.almeida at ic
unicamp br, felipe.m.almeida at gmail com, felipe at synergy com
I am a C, modern C++, MFC, ODBC, Windows Services, MAPI developer
from synergy, and Computer Science student from State
University of Campinas(UNICAMP).
To know more about:
Unicamp: http://www.ic.unicamp.br
Synergy: http://www.synergy.com.br
current work: http://www.mintercept.com
"There is no dark side of the moon really. Matter of fact it's all dark."

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net