|
Makes sense - will make a note for the next update.
Thanks,
Tim
|
|
|
|
|
Hello,
Any ideas on how to resolve the following Toolbox 64-bit compiler errors?
OXMenuBar.cpp
.\utoolbox\OXMenuBar.cpp(105) : error C2664: 'PtrToInt' : cannot convert parameter 1 from 'INT_PTR' to 'const void *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
.\utoolbox\OXMenuBar.cpp(1565) : error C2065: 'GCL_HICONSM' : undeclared identifier
.\utoolbox\OXMenuBar.cpp(1567) : error C2065: 'GCL_HICON' : undeclared identifier
OXBitmapMenuOrganizer.cpp
.\utoolbox\OXBitmapMenuOrganizer.cpp(966) : error C2065: 'GWL_WNDPROC' : undeclared identifier
.\utoolbox\OXBitmapMenuOrganizer.cpp(985) : error C2065: 'GWL_WNDPROC' : undeclared identifier
.\utoolbox\OXBitmapMenuOrganizer.cpp(986) : error C2065: 'GWL_WNDPROC' : undeclared identifier
.\utoolbox\OXBitmapMenuOrganizer.cpp(1012) : error C2065: 'GWL_WNDPROC' : undeclared identifier
OXBitmapButton.cpp
.\utoolbox\OXBitmapButton.cpp(2802) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
.\utoolbox\OXBitmapButton.cpp(2807) : warning C4334: '<<' : result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?)
Thanks,
-jc
|
|
|
|
|
Don't have any a solution at hand - will need some tweaking.
Most of the code has been reworked to get around the issues raised when compiling the 32 bit code with 64 portability warnings turned on, which doesn't seem to catch these.
Where needed, the UTB64bit.h file has #defines to adjust for the new fn names and typedefs, but doesn't deal with the GWLP_WNDPROC vs GWL_WNDPROC etc defines.
These and the GCL_ ones could probably be dealt with in UT64Bit.h, with perhaps an added switch e.g. UT_COMPILE_64BIT or some such.
I don't have the 64 bit compiler here - maybe you can have a look on your end.
One question - are these the only errors you get when compiling the major portion of the source (i.e. one of the static lib or DLL builds)?
Tim
|
|
|
|
|
Hi Tim,
Thank you for taking the time to reply to my posting.
I changed the GWL_WNDPROC to GWLP_WNDPROC and GCL_HICONSM to GCLP_HICONSM
and the errors were eliminated.
I am uncertain of your question? But, I will try to answer what I think your
question is. There were 100s of errors and 100s of warnings. I was able to
fix all of the errors and warnings with the exception of the few errors that
I identified in my original posting.
Thanks,
-jc
List of errors:
.\utoolbox\xstatus4.h(284) : error C2555: 'COXStatusBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\oxmenubar.h(593) : error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2245) : see declaration of 'CWnd::GetMenu'
.\utoolbox\Tbaricon.cpp(23) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl CTaskbarIcon::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'
Cast from base to derived requires dynamic_cast or static_cast
.\utoolbox\OXToolTipCtrl.cpp(84) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl COXToolTipCtrl::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'
Cast from base to derived requires dynamic_cast or static_cast
.\utoolbox\OXFrameWndDock.h(973) : error C2555: 'COXSizeViewBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXFrameWndDock.h(973) : error C2555: 'COXSizeViewBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXSizeCtrlBar.CPP(187) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSizeControlBar::* )(UINT,LONG)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXSizeCtrlBar.CPP(465) : error C2511: 'LONG COXSizeControlBar::OnAddContextMenuItems(WPARAM,LPARAM)' : overloaded member function not found in 'COXSizeControlBar'
d:\onmconsole\utoolbox\OXSizeCtrlBar.h(126) : see declaration of 'COXSizeControlBar'
.\utoolbox\OXShortcutBar.h(1991) : error C2555: 'COXSHBListCtrl::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXShortcutBar.h(3810) : error C2555: 'COXShortcutBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXShortcutBar.cpp(777) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl COXSHBListCtrl::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'
Cast from base to derived requires dynamic_cast or static_cast
.\utoolbox\OXShortcutBar.cpp(781) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(782) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(787) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(788) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(789) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(790) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(792) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(793) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(794) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(795) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(798) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(799) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(800) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(801) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(802) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(803) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(804) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(805) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(806) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(807) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(808) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(809) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(810) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(811) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(812) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(813) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(814) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(815) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(816) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(817) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(818) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(819) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(820) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(821) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(822) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(823) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(824) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(825) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(826) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSHBListCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(5195) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl COXShortcutBar::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'
Cast from base to derived requires dynamic_cast or static_cast
.\utoolbox\OXShortcutBar.cpp(5202) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXShortcutBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXShortcutBar.cpp(5203) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXShortcutBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXPopupBarCtrl.cpp(157) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl COXPopupBarCtrl::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'
Cast from base to derived requires dynamic_cast or static_cast
.\utoolbox\OXMonthCalCtrl.h(1673) : error C2555: 'COXMonthCalCtrl::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXMonthCalCtrl.cpp(65) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXMonthCalCtrl::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXMenuBar.h(593) : error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2245) : see declaration of 'CWnd::GetMenu'
.\utoolbox\OXMenuBar.cpp(121) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl COXMenuBar::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'
Cast from base to derived requires dynamic_cast or static_cast
.\utoolbox\OXMenuBar.cpp(126) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXMenuBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXMenuBar.cpp(129) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXMenuBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXMenuBar.cpp(1492) : error C2065: 'GCL_HICONSM' : undeclared identifier
.\utoolbox\OXMenuBar.cpp(1494) : error C2065: 'GCL_HICON' : undeclared identifier
.\utoolbox\OXMenuBar.cpp(1499) : error C2664: 'SendMessageTimeoutA' : cannot convert parameter 7 from 'LPDWORD' to 'PDWORD_PTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\utoolbox\OXMenuBar.cpp(1503) : error C2664: 'SendMessageTimeoutA' : cannot convert parameter 7 from 'LPDWORD' to 'PDWORD_PTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\utoolbox\OXFrameWndDock.h(973) : error C2555: 'COXSizeViewBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXFrameWndDock.h(973) : error C2555: 'COXSizeViewBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXFrameWndDock.CPP(1833) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXMDIChildWndSizeDock::* )(UINT,LONG)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXFrameWndDock.CPP(2499) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSizeViewBar::* )(UINT,LONG)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXFrameWndDock.CPP(2500) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSizeViewBar::* )(UINT,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXFrameWndDock.CPP(2501) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXSizeViewBar::* )(UINT,LONG)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXFrameWndDock.CPP(2797) : error C2511: 'LONG COXSizeViewBar::OnAddContextMenuItems(WPARAM,LPARAM)' : overloaded member function not found in 'COXSizeViewBar'
.\utoolbox\OXFrameWndDock.h(973) : error C2555: 'COXSizeViewBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXDragDockContext.CPP(582) : warning C4244: 'argument' : conversion from 'WPARAM' to 'int', possible loss of data
.\utoolbox\OXDockTabCtrl.cpp(79) : error C2039: 'SaveMouseOffset' : is not a member of 'COXCoolToolBar'
d:\onmconsole\utoolbox\OXCoolToolBar.h(1685) : see declaration of 'COXCoolToolBar'
.\utoolbox\OXDockTabCtrl.cpp(81) : error C2039: 'm_bDragging' : is not a member of 'COXCoolToolBar'
d:\onmconsole\utoolbox\OXCoolToolBar.h(1685) : see declaration of 'COXCoolToolBar'
.\utoolbox\OXDockTabCtrl.cpp(91) : error C2039: 'SaveMouseOffset' : is not a member of 'COXSizeControlBar'
d:\onmconsole\utoolbox\OXSizeCtrlBar.h(126) : see declaration of 'COXSizeControlBar'
.\utoolbox\OXDockTabCtrl.cpp(93) : error C2039: 'm_bDragging' : is not a member of 'COXSizeControlBar'
d:\onmconsole\utoolbox\OXSizeCtrlBar.h(126) : see declaration of 'COXSizeControlBar'
.\utoolbox\OXDockTabCtrl.cpp(115) : error C2039: 'GetSizeControlBarCount' : is not a member of 'COXSizeDockBar'
d:\onmconsole\utoolbox\OXSizeDockBar.h(83) : see declaration of 'COXSizeDockBar'
.\utoolbox\OXDockTabCtrl.cpp(124) : error C2248: 'CDockBar::GetDockedControlBar' : cannot access protected member declared in class 'CDockBar'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxpriv.h(632) : see declaration of 'CDockBar::GetDockedControlBar'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxpriv.h(589) : see declaration of 'CDockBar'
.\utoolbox\OXDockTabCtrl.cpp(155) : error C2039: 'PositionTabCtrl' : is not a member of 'COXSizeDockBar'
d:\onmconsole\utoolbox\OXSizeDockBar.h(83) : see declaration of 'COXSizeDockBar'
.\utoolbox\OXDockTabCtrl.cpp(216) : error C2039: 'GetTabHeight' : is not a member of 'COXSizeDockBar'
d:\onmconsole\utoolbox\OXSizeDockBar.h(83) : see declaration of 'COXSizeDockBar'
.\utoolbox\OXDockTabCtrl.cpp(237) : error C2039: 'GetSizeControlBarCount' : is not a member of 'COXSizeDockBar'
d:\onmconsole\utoolbox\OXSizeDockBar.h(83) : see declaration of 'COXSizeDockBar'
.\utoolbox\OXDockTabCtrl.cpp(239) : error C2039: 'GetFirstDockedSizeControlBar' : is not a member of 'COXSizeDockBar'
d:\onmconsole\utoolbox\OXSizeDockBar.h(83) : see declaration of 'COXSizeDockBar'
.\utoolbox\OXDirDlg.cpp(248) : error C2668: 'CEdit::SetSel' : ambiguous call to overloaded function
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(3640): could be 'void CEdit::SetSel(int,int,BOOL)'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(3639): or 'void CEdit::SetSel(DWORD,BOOL)'
while trying to match the argument list '(__int64, int)'
.\utoolbox\OXMonthCalCtrl.h(1673) : error C2555: 'COXMonthCalCtrl::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\OXCoolToolBar.cpp(245) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXCoolToolBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXCoolToolBar.cpp(246) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXCoolToolBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXCoolToolBar.cpp(247) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXCoolToolBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXCoolToolBar.cpp(248) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXCoolToolBar::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXBitmapMenuOrganizer.cpp(935) : error C2065: 'GWL_WNDPROC' : undeclared identifier
.\utoolbox\OXBitmapMenuOrganizer.cpp(954) : error C2065: 'GWL_WNDPROC' : undeclared identifier
.\utoolbox\OXBitmapMenuOrganizer.cpp(955) : error C2065: 'GWL_WNDPROC' : undeclared identifier
.\utoolbox\OXBitmapMenuOrganizer.cpp(981) : error C2065: 'GWL_WNDPROC' : undeclared identifier
.\utoolbox\OXBitmapMenu.cpp(58) : error C2440: 'static_cast' : cannot convert from 'void (__cdecl COXBitmapMenuPopupWnd::* )(UINT)' to 'void (__cdecl CWnd::* )(UINT_PTR)'
Cast from base to derived requires dynamic_cast or static_cast
.\utoolbox\OXBitmapMenu.cpp(64) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXBitmapMenuPopupWnd::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXBitmapMenu.cpp(65) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXBitmapMenuPopupWnd::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXBitmapMenu.cpp(66) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXBitmapMenuPopupWnd::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXBitmapMenu.cpp(67) : error C2440: 'static_cast' : cannot convert from 'LONG (__cdecl COXBitmapMenuPopupWnd::* )(WPARAM,LPARAM)' to 'LRESULT (__cdecl CWnd::* )(WPARAM,LPARAM)'
None of the functions with this name in scope match the target type
.\utoolbox\OXBitmapMenu.cpp(1829) : error C2440: '=' : cannot convert from 'long (__cdecl *)(HWND,UINT,WPARAM,LPARAM)' to 'WNDPROC'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
.\utoolbox\xstatus4.h(284) : error C2555: 'COXStatusBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\oxmenubar.h(593) : error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2245) : see declaration of 'CWnd::GetMenu'
.\utoolbox\xstatus4.h(284) : error C2555: 'COXStatusBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\oxmenubar.h(593) : error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2245) : see declaration of 'CWnd::GetMenu'
.\utoolbox\xstatus4.h(284) : error C2555: 'COXStatusBar::OnToolHitTest': overriding virtual function return type differs and is not covariant from 'CWnd::OnToolHitTest'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2357) : see declaration of 'CWnd::OnToolHitTest'
.\utoolbox\oxmenubar.h(593) : error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'
D:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\include\afxwin.h(2245) : see declaration of 'CWnd::GetMenu'
|
|
|
|
|
Ok - looks like some work to be done for a 64 bit update.
I can run the cross compiler in VS8 - compiling the UT DLL for WINVER 0x0600 or WINVER 0x0501 I get 478 errors, 16 warnings. I suspect you are using only a subset of the files directly in your project, but maybe there were just too many errors to post.
I think a lot of these can be taken care of by redefining some return types - would need a closer look.
Ideally, the code base should remain capable of 32 bit compilation, down to VC6 - so any update should try to take this into account, rather than just hard coding the changes.
I can't run 64 bit here, so I'll be interested to see if you find any oddities at tun time - also, are you compiling on a 64-bit machine?
Tim
|
|
|
|
|
Hi Tim,
Yes, a lot of the problems were return type errors;
LRESULT vs. long and vice versa. Also, there were a lot
of errors from argument type differences; WPARAM vs UINT,int,...
and LPARAM vs. long,...
My development environment is VS2008 on a dual-core AMD64,
2GB memory, 1/2 TB disk, WinXP Pro (x64).
-jc
modified on Monday, October 20, 2008 11:36 AM
|
|
|
|
|
Thanks jc
I might take a stab at this - at least check out how much can be done in UTB64Bit.h with a few well placed #ifdef _WIN64's.
Maybe you could help me test if I think I have something worth an update.
Thanks again,
Tim
|
|
|
|
|
Hi Tim,
Yes, please let me know when you have
a new 64-bit update available, and I
will test it.
-jc
modified on Monday, October 20, 2008 7:26 PM
|
|
|
|
|
Hi jc
I've placed an 'alpha' of the changes on the updates page - maybe we can move this thread here[^]
Thanks
Tim
|
|
|
|
|
I'd also be interested in testing x64 updates for both the toolbox and the grid.
|
|
|
|
|
|
I have a working compilation now, although it's not really the cleanest way to modify it, and I'm not sure everything will be still functional. Hopefully I'll be able to link everything and test it if I can get the grid compiling too. I'd be happy to post what I did if you have any issues making it work; no promises on having done it "the right way".
The biggest issue in terms of code change is the PtrToXXX functions; the v6.1 SDK has these as functions which take pointers, which doesn't work with the way the UT code is using them (to truncate size). I ended up defining new macros UTPtrToXXX which explicitly truncate-cast only, and doing search/replace.
Everything else was fairly straightforward: lots of conversion of message handlers to LRESULT [...](WPARAM wParam, LPARAM lParam), fixing types to XXX_PTR, etc. Hope this helps.
|
|
|
|
|
Yes - thanks
I'm just slogging through those now - I have an additional section in UTB64Bit.h that looks something like:
#if defined(_WIN64)
#define OXINTRET INT_PTR
#define GWL_WNDPROC GWLP_WNDPROC
#define GWL_HINSTANCE GWLP_HINSTANCE
#define GWL_HWNDPARENT GWLP_HWNDPARENT
#define GWL_USERDATA GWLP_USERDATA
#define GCL_MENUNAME GCLP_MENUNAME
#define GCL_HBRBACKGROUND GCLP_HBRBACKGROUND
#define GCL_HCURSOR GCLP_HCURSOR
#define GCL_HICON GCLP_HICON
#define GCL_HMODULE GCLP_HMODULE
#define GCL_WNDPROC GCLP_WNDPROC
#define GCL_HICONSM GCLP_HICONSM
#define PtrToInt(x) PtrToInt((VOID*)(x)) // 64 bit version expects void*, not INT_PTR
#define PtrToLong(x) PtrToLong((VOID*)(x)) // 64 bit version expects void*, not INT_PTR
#define PtrToUint(x) PtrToUint((VOID*)(x)) // 64 bit version expects void*, not INT_PTR
#define PtrToUlong(x) PtrToUlong((VOID*)(x)) // 64 bit version expects void*, not INT_PTR
#else
#define OXINTRET int
#endif
This gets rid of the large number of PtrToInt etc errors pretty quickly, while keeping bward comp - but yes, will need testing.
I'm just now going through correcting the large number of decls using that were taking liberties with LRESULT, WPARAM and LPARAM - cleanup overdue on that one - then will tackle the odd bits.
So far I haven't needed any #ifdef _WIN64 outside of UTB64Bit.h, but I'm sure that will change.
Any heads up on some annoying ones that are about to make me mumble to myself will be appreciated.
Thanks
Tim
|
|
|
|
|
Hi
I've put an 'alpha' update 03 on the updates page - lets move this thread here[^]
Thanks
Tim
|
|
|
|
|
Hello!
I'm useing a COXTreeCtrl in a Dialog (VS2005). When i want to disable the ColumnHeader, using:
m_tree.ModifyExStyle(0,TVOXS_COLUMNHDR); or
m_tree.ModifyExStyle(TVOXS_COLUMNHDR,0);
,but they are not effective all. The ColumnHeader is still visible, does somebody can help me ?
Otherwise, in my program, "m_tree.ModifyExStyle(TVOXS_NOSORTHEADER,0)" can works!
Thanks,
zengwk
|
|
|
|
|
Hi
Try this - it first gets the header control itself through the base CListCtrl::GetHeaderCtrl member, then you can disable or hide it:
CHeaderCtrl* header = m_xlc.GetHeaderCtrl();
header->ModifyStyle(0,HDS_HIDDEN);
Tim
|
|
|
|
|
Oh,it Works ! Thanks to you !
CHeaderCtrl, is windows' control.
zengwk
|
|
|
|
|
Hello,
I am getting compiler errors, when I try
to build my application. I looked at the
GetMenu() declarations, in both the
oxmenubar.h and the afxwin.h, and they look
identical. Many of the "AllSamples" programs,
that use GetMenu(), generate the compiler error.
Any ideas on how to fix these compiler errors?
\utoolbox\oxmenubar.h(593) : error C2555: 'COXMenuBar::GetMenu': overriding virtual function return type differs and is not covariant from 'CWnd::GetMenu'
d:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\afxwin.h(2245) : see declaration of 'CWnd::GetMenu'
Thanks,
-jc
modified on Tuesday, October 14, 2008 11:16 PM
|
|
|
|
|
Hi jc
Yes - it's a VS2008 issue - visit the Updates[^] page and apply the two updates for the Ultimate Toolbox source.
The second update has a workaround for the change in the declaration of GetMenu.
Tim
|
|
|
|
|
Hi Tim,
Thank you for replying to my posting.
Yes, installing the updates did fix the GetMenu() problem.
Thanks again,
-jc
|
|
|
|
|
Hello,
Where can find 64-bit version of CPUInf libaries?
Thanks
-jc
|
|
|
|
|
|
Hi Tim,
Thank you for replying to my posting.
You'll probably find this a bit surprising,
but when you asked the question, "what properties
do I need to detect?". I looked through my source
code, and I discovered that I am no longer using
the library. I saw in my commented code that
I was using it at one time, but I now I no longer
need it. I removed the references from my code,
and the 64-bit program compiles/links OK.
Thanks for asking an obvious question.
-jc
|
|
|
|
|
I can't download file "Download the Ultimate Toolbox documentation in compiled HTML help (CHM) format"
Please check if it is present.
|
|
|
|
|
Seems good, at least from this page - might have been some temporary glitch - try again?
Tim
|
|
|
|
|