Wndproc in a class
how do i to put this in a class?
LRESULT CALLBACK WndProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
-----------------------------
-cow_in_the_well
http://cowswell.gda.ods.org/
"If it's stupid but works, it's not stupid" - Murphey's Law
- Thomas Cowellwebsite | journal | engine video
okay.
another q.
how do i set a function pointer to a class member function?
i have
class CFoo
{
public:
void InitStuff ();
void Functiontopointto (int foo);
}
in initstuff i have
CFoo:InitStuff ()
{
SetFunctionPointer (&FunctionToPointTo); // I don''t think this is right
}
then in another module that is not in a class:
void (*FunctionPointer)(int foo)// global to this file
void SetFunctionPointer (void (*function)(int foo))
{
FunctionPointer = function;
}
then i want to be able to call the function from this module (that is not a class).
ummm. make sense?
-----------------------------
-cow_in_the_well
http://cowswell.gda.ods.org/
"If it's stupid but works, it's not stupid" - Murphey's Law
another q.
how do i set a function pointer to a class member function?
i have
class CFoo
{
public:
void InitStuff ();
void Functiontopointto (int foo);
}
in initstuff i have
CFoo:InitStuff ()
{
SetFunctionPointer (&FunctionToPointTo); // I don''t think this is right
}
then in another module that is not in a class:
void (*FunctionPointer)(int foo)// global to this file
void SetFunctionPointer (void (*function)(int foo))
{
FunctionPointer = function;
}
then i want to be able to call the function from this module (that is not a class).
ummm. make sense?
-----------------------------
-cow_in_the_well
http://cowswell.gda.ods.org/
"If it's stupid but works, it's not stupid" - Murphey's Law
- Thomas Cowellwebsite | journal | engine video
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement