From: asif s. <asi...@gm...> - 2011-03-18 11:29:45
|
Hi, I get the following errors on building the SmartWin2010.zip RC5: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 1>------ Build started: Project: test04, Configuration: Debug Win32 ------ 1> test04.cpp 1> Unknown compiler version - please run the configure tests and report the results 1>e:\projects\scratch\test04\test04\test04.cpp(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>e:\projects\scratch\test04\test04\test04.cpp(64): error C2143: syntax error : missing ',' before '&' 1>e:\projects\scratch\test04\test04\test04.cpp(39): error C3861: 'setSize': identifier not found 1>e:\projects\scratch\test04\test04\test04.cpp(44): error C2039: 'setSize' : is not a member of 'SmartWin::WidgetButton<EventHandlerClass,MessageMapPolicy>' 1> with 1> [ 1> EventHandlerClass=HelloWinClass, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1>e:\projects\scratch\test04\test04\test04.cpp(48): error C2039: 'setSize' : is not a member of 'SmartWin::WidgetCheckBox<EventHandlerClass,MessageMapPolicy>' 1> with 1> [ 1> EventHandlerClass=HelloWinClass, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1>e:\projects\scratch\test04\test04\test04.cpp(54): error C2664: 'void SmartWin::WidgetMenu<EventHandlerClass,MessageMapPolicy>::appendItem(unsigned int,const SmartUtil::tstring &,void (__thiscall HelloWinClass::* )(boost::shared_ptr<T>,unsigned int))' : cannot convert parameter 3 from 'void (__thiscall HelloWinClass::* )(SmartWin::WidgetMenu<EventHandlerClass,MessageMapPolicy> *,unsigned int)' to'void (__thiscall HelloWinClass::* )(boost::shared_ptr<T>,unsigned int)' 1> with 1> [ 1> EventHandlerClass=HelloWinClass, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget, 1> T=SmartWin::WidgetMenu<HelloWinClass,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> and 1> [ 1> EventHandlerClass=HelloWinClass, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1> and 1> [ 1> T=SmartWin::WidgetMenu<HelloWinClass,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>e:\projects\scratch\test04\test04\test04.cpp(55): error C2664: 'void SmartWin::WidgetMenu<EventHandlerClass,MessageMapPolicy>::appendItem(unsigned int,const SmartUtil::tstring &,void (__thiscall HelloWinClass::* )(boost::shared_ptr<T>,unsigned int))' : cannot convert parameter 3 from 'void (__thiscall HelloWinClass::* )(SmartWin::WidgetMenu<EventHandlerClass,MessageMapPolicy> *,unsigned int)' to'void (__thiscall HelloWinClass::* )(boost::shared_ptr<T>,unsigned int)' 1> with 1> [ 1> EventHandlerClass=HelloWinClass, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget, 1> T=SmartWin::WidgetMenu<HelloWinClass,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> and 1> [ 1> EventHandlerClass=HelloWinClass, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1> and 1> [ 1> T=SmartWin::WidgetMenu<HelloWinClass,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>e:\projects\scratch\test04\test04\test04.cpp(61): error C2664: 'void SmartWin::AspectSizable<EventHandlerClass,WidgetType,MessageMapType>::onSized(void (__thiscall HelloWinClass::* )(const SmartWin::WidgetSizedEventResult &))' : cannot convert parameter 1 from 'void (__thiscall HelloWinClass::* )(const int)' to 'void (__thiscall HelloWinClass::* )(const SmartWin::WidgetSizedEventResult &)' 1> with 1> [ 1> EventHandlerClass=HelloWinClass, 1> WidgetType=SmartWin::WidgetWindowBase<HelloWinClass,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMap<HelloWinClass,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>e:\projects\scratch\test04\test04\test04.cpp(72): error C2228: left of '.size' must have class/struct/union 1> type is ''unknown-type'' 1>e:\projects\scratch\test04\test04\test04.cpp(72): error C3861: 'getSizeClientArea': identifier not found ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |