|
-
Jul 18th, 2003, 09:51 PM
#1
Thread Starter
Frenzied Member
CallWindowProc won't comile with Borland.
//declaration:
WNDPROC formsWndProc;
//in Form f:
formProc= (WNDPROC)::SetWindowLong(hwnd, GWL_WNDPROC, (long)WindowProcedure);
//initialization:
formsWndProc= (WNDPROC)f.formProc;
//does not compile:
::CallWindowProc(formsWndProc, hwnd, message, wParam, lParam);
error:
[C++ Error] main.cpp(126): E2034 Cannot convert 'long (__stdcall *)(void *,unsigned int,unsigned int,long)' to 'int (__stdcall *)()'
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|