>       CString (CMyClass::*fp)(int) = CMyClass::GetValue;      //
> ptr to function definition
>       ListCtrl.SetItemData(1, static_cast<DWORD>(fp));        // <- error
>
>
> // error is:
> error C2440: 'reinterpret_cast' : cannot convert from 'class
> CString (__thiscall CMyClass::*)(int)' to 'unsigned long'
>         Conversion is a valid standard conversion, which can be

I have no idea if it will make any difference, but try casting to LPVOID
before casting to DWORD... tha extra step (class fn ptr to void ptr, then
void ptr to dword) may do the trick.

--
Jason Teagle
[EMAIL PROTECTED]



_______________________________________________
msvc mailing list
[EMAIL PROTECTED]
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription 
changes, and list archive.

Reply via email to