Win32 WndProc Name: why can't I change its name ?
- by asksuperuser
I have compiled a simple win32 app successfully with bc++ (2 lines excerpt only):
LRESULT CALLBACK WindowProcedure (HWND, UINT, WPARAM, LPARAM);
wincl.lpfnWndProc = WindowProcedure;
Why can't I rename WindowProcedure and compile this:
LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM);
wincl.lpfnWndProc = WndProc;
as error message gives:
Turbo Incremental Link 5.00 Copyright
(c) 1997, 2000 Borland Error:
Unresolved external 'stdcall
WndProc(HWND *, unsigned int,
unsigned int, long)' referenced from
C:\PROGRAMMING\SALLY\WIN32TUTORIAL\MAIN.OBJ