Advertisement

Wndproc in a class

Started by July 28, 2000 05:20 PM
1 comment, last by cow_in_the_well 24 years, 4 months ago
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

Check out Witchlord''s particle tutorial for info.

-Mezz
Advertisement
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

- Thomas Cowellwebsite | journal | engine video

This topic is closed to new replies.

Advertisement