Xtreme toolkit & vs2005 |
Post Reply |
Author | |
rt15051966
Newbie Joined: 27 May 2005 Location: Poland Status: Offline Points: 3 |
Post Options
Thanks(0)
Posted: 27 May 2005 at 12:47pm |
how to compile library ver 9.60 with VS2005 there are many error with makro ON_WM_NCHITTEST() return parameter in new MFC80 is incorect example: XTSplitterWnd.cpp d:\tools\codejock software\mfc\xtreme toolkit pro v9.60\src\controls\common.src\xtsplitterwnd.cpp(91) : error C2440: 'static_cast' : cannot convert from 'UINT (__thiscall CXTSplitterWnd::* )(CPoint)' to 'LRESULT (__thiscall CWnd::* )(CPoint)' Cast from base to derived requires dynamic_cast or static_cast
|
|
Sven
Senior Member Joined: 21 August 2003 Location: Germany Status: Offline Points: 127 |
Post Options
Thanks(0)
|
MS changed the return value for ON_WM_NCHITTEST from UINT to LRESULT, you you have to change your source code too. For 64bit apps this is important because LRESULT is a 64bit value in the x64 world while UINT stays 32bit. To get compatibility with MFC7 and below I added the following lines in stdafx.h after including the MFC headers:
So my code compiles fine both with VC6 (customized version of MFC7) and VS2005. Edited by Sven |
|
rt15051966
Newbie Joined: 27 May 2005 Location: Poland Status: Offline Points: 3 |
Post Options
Thanks(0)
|
thanks for answer
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |