Is this evev possible to do? If so, how?
This is a discussion on Convert callback to varible? within the C++ Programming forums, part of the General Programming Boards category; Is this evev possible to do? If so, how?...
Is this evev possible to do? If so, how?
Is this your entry in the terse question of the week award competition?
If you're referring to function pointers, then yes is the answer.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
No I'm not, I mean converting (more so moving the actuall data in memory that the callback is obtaining into a varible for handling.Originally Posted by Salem
In specific, a FARPROC to an PLVOID.
The first 90% of a project takes 90% of the time,
the last 10% takes the other 90% of the time.
Well if it's a well-written callback, it will get some kind of 'context' pointer which relates to the data which it is supposed to work with.
Given any pointer to any bit of user data, you can use that to get access to whatever data you need.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.