Article View: att.lang.c++
Article #170load variable with function address
From: user name
Date: Fri, 02 Apr 1999 00:00
Date: Fri, 02 Apr 1999 00:00
20 lines
1040 bytes
1040 bytes
Hi, I want to pass a variable to SetWindowLong' last param to set up a subclass function. I'm trying to declare and load this variable. // Declaration of the variable to hold the pointer to the address of my WNDPROC LRESULT (APIENTRY *pfStatusBarSubClassProc)( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); // line to load the variable with the pointer address of my WNDPROC pfStatusBarSubClassProc= StatusBarSubClassProc; The compiler doesn't like this. Why? Please also Email me any suggestions at timber@lasercom.net Thanks
Technical Details
Message-ID:
<3705063b.0@news.compuvar.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4ba,1912b8503288feb3,start X-Google-Attributes: gid10d4ba,public From: "user name" <loginname@lasercom.net> Subject: load variable with function address Date: 1999/04/02 Message-ID: <3705063b.0@news.compuvar.com> X-Deja-AN: 462013014 X-NNTP-Posting-Host: 207.137.47.87 X-Trace: 2 Apr 1999 10:02:35 -0800, 207.137.47.87 Newsgroups: att.lang.c++ X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3