A
andthen
I'm using a windows library function which does not return anything useful
(EnumWindows... returns a BOOL), I give it a pointer to a callback function
and it sends the data I want to the callback function. My question is, what
is the best way to get that data into the initial function, which called the
library function? The only way I can think of is to have the callback
function modify a global variable and then have the initial function access
that. But that seems messy and I'm wondering if there is a better way. Any
ideas?
(EnumWindows... returns a BOOL), I give it a pointer to a callback function
and it sends the data I want to the callback function. My question is, what
is the best way to get that data into the initial function, which called the
library function? The only way I can think of is to have the callback
function modify a global variable and then have the initial function access
that. But that seems messy and I'm wondering if there is a better way. Any
ideas?