* Ismo Salonen:
The error message suggests that you are not calling the function (thus
just comparing the address).
if ( GetFDCallback() == (int*)1 ) {
Add the () there.
According to Michael's original post the function signature is
int GetFDCallback( void* )
so the above would be very invalid code.
I think any advice here about how to "call" the function would probably mislead
Michael, since it seems that his idea of "calling" it is just a wild idea.
Mostly the problem boils down to Michael assuming that readers of his post are
telepathic. Well, Michael, we're not telephathic: offhand we have no clue as to
where you stumbled over this function or what it's about or whether its name is
indicative of something or just a name you cooked up, or whatever, and no-one is
going to spend time trying to find out. As suggested else-thread, RTFM.
Cheers & hth.,
- Alf