Re: In the need for some advice!

Tech-Archive recommends: Speed Up your PC by fixing your registry



Declare the callbacks in the header but define them out-of-line in a .cpp
file:

example.h:

// Don't have to specify parameter names if you don't want to.
LRESULT CALLBACK CW1_WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM
lParam);

example.cpp:

#include "example.h"

LRESULT CALLBACK CW1_WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM
lParam)
{
// definition here
};


S.


.



Relevant Pages

  • Re: Windows c programing
    ... > LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM ... > HDC hdc; ...
    (comp.lang.c)
  • Re: Windows c programing
    ... > LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM ...
    (comp.lang.c)
  • Re: Renaming Buttons in Visual C++
    ... you should add following to your dialog callback ... > BOOL DialogCallback(HWND hWndDialog, UINT uMsg, WPARAM wParam, LPARAM ...
    (microsoft.public.win32.programmer.ui)
  • Something with callbacks and object instance and such...
    ... main objects WndProc I try to read or write to a protected var and it ... LRESULT CALLBACK MainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Shutdown hook
    ... > LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM ... Alessio. ...
    (microsoft.public.win32.programmer.kernel)