I have a structure that looks like this:
So it has a pointer to a function in it (if that * is on the wrong side don't worry about it).Code:struct STRUCTURE { bool (*ptFunction)(void); };
I also have a class like this:
I then want to do this:Code:class CONNECTION { public: bool Assign(); bool MyPtrFunction(void); };
But I can't do that because im assigning aCode:bool CONNECTION::Assign() { STRUCTURE myStruct; myStruct.ptFunction = MyPtrFunction; }
bool (__stdcall CONNECTION::*) (void) to a
bool (__stdcall *)(void).
Is there any possible way to assign the CONNECTION::MyPtrFunction to ptFunction? Any help is much appreciated!



LinkBack URL
About LinkBacks


