Re: Got compiler error when I use the code from msdn sit

Tech-Archive recommends: Fix windows errors by optimizing your registry



Your method must be static.

BTW, these are basic C++ language questions.The right newsgroup
for them is:

microsoft.public.vc.language

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Pucca" <Pucca@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2BE64589-C9CF-4145-B4C3-5FF21F84A802@xxxxxxxxxxxxxxxx
I copied the copde from
http://windowssdk.msdn.microsoft.com/en-us/library/ms676867.aspx
UINT CALLBACK CGroupPage::PageCallbackProc( HWND hWnd,
UINT uMsg,
LPPROPSHEETPAGE ppsp)


psp.pfnCallback = &CGroupPage::PageCallbackProc;//error C2440:

When I compile I got the following error:

error C2440: 'type cast' : cannot convert from 'UINT (__stdcall
CGroupPage::* )(HWND,UINT,LPPROPSHEETPAGEW)' to 'LPFNPSPCALLBACKW'

How can I correct this problem? Thanks.

Thanks.


.


Quantcast