You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
(2) |
Nov
(5) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
|
Feb
|
Mar
(4) |
Apr
|
May
(9) |
Jun
(24) |
Jul
(2) |
Aug
(4) |
Sep
(107) |
Oct
(19) |
Nov
(39) |
Dec
(51) |
2006 |
Jan
(9) |
Feb
(8) |
Mar
(35) |
Apr
(14) |
May
(25) |
Jun
(7) |
Jul
(31) |
Aug
(3) |
Sep
(6) |
Oct
(7) |
Nov
(7) |
Dec
(11) |
2007 |
Jan
(2) |
Feb
(5) |
Mar
(9) |
Apr
|
May
|
Jun
(3) |
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
(20) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: SourceForge.net <no...@so...> - 2012-06-28 11:04:14
|
Feature Requests item #3538648, was opened at 2012-06-28 04:04 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600361&aid=3538648&group_id=92327 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Widgets Group: None Status: Open Priority: 5 Private: No Submitted By: https://me.yahoo.com/a/bXCWPn4_ () Assigned to: Nobody/Anonymous (nobody) Summary: Loading Menu from resource file Initial Comment: Menus in SmartWin++ are created through coding in C++ which can be quite tedious. Menus are easily created using WYSIWYG resource editors like the one form Visual C++ and the corresponding resource file (.rc) is generated. I hope that the future release would support loading of menus from a resource file (.rc) much similar to control subclassing given the control ID where we can also assign event handlers. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600361&aid=3538648&group_id=92327 |
From: SourceForge.net <no...@so...> - 2012-06-28 10:18:25
|
Feature Requests item #3538637, was opened at 2012-06-28 03:18 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600361&aid=3538637&group_id=92327 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Widgets Group: None Status: Open Priority: 5 Private: No Submitted By: https://me.yahoo.com/a/bXCWPn4_ () Assigned to: Nobody/Anonymous (nobody) Summary: Support for List Box and Tabbed MDI Frame Initial Comment: Currently, SmartWin++ seems to have incomplete class supporting the Win32 common controls. I have noticed that there is no class for the List Box control which provides simpler interface than List View control. Also, there is no class for Tabbed MDI Frame, other frameworks like MFC, WTL, OWLNext and QT still supports List Box and Tabbed MDI Frame. With these shortcomings, SmartWin++ is still lagging behind. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600361&aid=3538637&group_id=92327 |
From: SourceForge.net <no...@so...> - 2012-06-21 09:50:22
|
Feature Requests item #3536836, was opened at 2012-06-21 02:50 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600361&aid=3536836&group_id=92327 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Widgets Group: Next Release (example) Status: Open Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: ListBox and more controls Initial Comment: Currently, SmartWin++ don't have a class to encapsulate list box control and only list view is supported. Hopefully, there would be more widgets to be added in the next release including the list box control. Any widgets that are missing in SmartWin++ should be added in the next release. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600361&aid=3536836&group_id=92327 |
From: <and...@co...> - 2011-03-30 16:06:57
|
1) Right click on each project, Properties, “Common Properties”, Add New Reference, and then choose SmartWin. After you do that, VC++ must rebuild SmartWin before building the other projects. 2) Did you try using “winresrc.h” instead ? best regards, Andrew From: asif saeed Sent: Wednesday, March 30, 2011 11:03 AM To: sma...@li... Subject: [SmartWin-General] SmartWinUnitTests DELETE the built Lib Hi, Somehow clean building SmartWinUnitTests.sln deletes The SmartWinD.lib that I build prior to that. Any idea as to how this can be rectified? Best regards, Asif Hi, Build for tests such as WidgetToolbar, WidgetStatusBar, WidgetCheckbox, etc. fails because of dependency on afxres.h. Including appropriate MFC directory results in a successful build. Can this MFC dependency be removed? I have downloaded and using ResEdit - a free resource editor - I hope this can be of use to others on the this list as well. Best regards, Asif -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf -------------------------------------------------------------------------------- _______________________________________________ SmartWin-General mailing list Sma...@li... https://lists.sourceforge.net/lists/listinfo/smartwin-general |
From: asif s. <asi...@gm...> - 2011-03-30 15:03:28
|
Hi, Somehow clean building SmartWinUnitTests.sln deletes The SmartWinD.lib that I build prior to that. Any idea as to how this can be rectified? Best regards, Asif |
From: asif s. <asi...@gm...> - 2011-03-30 06:57:13
|
Hi, Build for tests such as WidgetToolbar, WidgetStatusBar, WidgetCheckbox, etc. fails because of dependency on afxres.h. Including appropriate MFC directory results in a successful build. Can this MFC dependency be removed? I have downloaded and using ResEdit - a free resource editor - I hope this can be of use to others on the this list as well. Best regards, Asif |
From: asif s. <asi...@gm...> - 2011-03-29 11:39:12
|
Hi Andrew, You (or perhaps someone else) emailed me a step-by-step procedure to get SmartWin to build successfully - including its examples. The description (perhaps on a url/page) included instruction on changing vsprops (that I can still see now) and then loading the solution file in Visual C++ Express 2010 and again changing some stuff - perhaps, adding a reference to something. It's strange but I cannot see that reply now; I have reinstalled everything (including the OS) and need to find that useful step-by-step procedure again but somehow my GMail is now showing me that email message. Could you please forward that post to me again? Best regards, Asif On Fri, Mar 18, 2011 at 3:17 PM, asif saeed <asi...@gm...> wrote: > Hi, > > I am a newbie to SmartWin and really like your library - it is really > simple and elegant - I have just read the online examples. > > The problem is that the VC++ 2010 Express doesn't convert the project (0 > files converted is the message) when I download SmartWin2010.zip from > http://sourceforge.net/projects/smartwin/files/ and try to open the > solution file. > > Downloading SmartWin1.0.2.zip and opening the solution as specified in the > online example (http://smartwin.sourceforge.net/getting_started.php) > results in red underlines in some functions (perhaps related to sizing - I > have deleted the whole project so cannot recall right now). But I'd really > like to work with the latest build using VC++ 2010 Express. > > I'd be thankful for any help in this respect. > > Best regards / Asif > > > > |
From: <and...@co...> - 2011-03-28 13:20:40
|
I don’t understand why the projects would be converted when they should be VS2010 projects anyhow. You might start your own solution, and add the smartwin project, and then a test project, and see if that works. From: asif saeed Sent: Monday, March 28, 2011 8:17 AM To: sma...@li... Subject: [SmartWin-General] SmartWin solution for VS2010 hangs during project conversion in VS2010 Express Hi, I setup a clean Windows 2003 environment with platform SDK for Win 2003 and then VC2010 Express. Now when I try to load SmartWin 2010 solution in VC++2010 Express the project conversion wizard pops up and upon pressing next/next, it hangs and keeps displaying the following message right in the beginning of conversion: Loading project 916061760 of 2 : Project Foobar Any idea as to what's going on? Best regards, Asif -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar -------------------------------------------------------------------------------- _______________________________________________ SmartWin-General mailing list Sma...@li... https://lists.sourceforge.net/lists/listinfo/smartwin-general |
From: asif s. <asi...@gm...> - 2011-03-28 12:17:40
|
Hi, I setup a clean Windows 2003 environment with platform SDK for Win 2003 and then VC2010 Express. Now when I try to load SmartWin 2010 solution in VC++2010 Express the project conversion wizard pops up and upon pressing next/next, it hangs and keeps displaying the following message right in the beginning of conversion: Loading project 916061760 of 2 : Project Foobar Any idea as to what's going on? Best regards, Asif |
From: <and...@co...> - 2011-03-25 14:48:46
|
I was able to compile with Express by replacing the “afxres.h” with “winresrc.h” in WidgetToolbar.rc Reason: The VC++ Express version omits MFC and the resource editors. (Please complain to http://blogs.msdn.com/b/vcblog/ ) Consequently the file “afxres.h” is not found when processing the .rc file built with VC++ Professional. However it ends up including “winresrc.h” eventually, and that seems to be enough. See also doxygenIn\msvcToolkit.html where a path can be found for afxres if you have downloaded a SDK separate from Visual Studio. best regards, Andrew From: asif saeed Sent: Tuesday, March 22, 2011 3:23 AM To: sma...@li... Subject: Re: [SmartWin-General] Build Fails - Resource File Errors Hi, I followed all the instructions in the msvc10.html file provided earlier and tried to build just WidgetToolbar project again which resulted in the following errors: 1>------ Build started: Project: SmartWin, Configuration: Debug Win32 ------ 1> trackable.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> slot.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> signal_base.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> named_slot_map.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> connection.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> WidgetSplitter.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Widget.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> PrintCanvas.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Message.cpp 1> LibraryLoader.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> ImageList.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Icon.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Font.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> DestructionClass.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> CommandLine.cpp 1> CanvasClasses.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Bitmap.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> BasicTypes.cpp 1> Application.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Generating Code... 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(E:\cpp_libs\SmartWin\Lib\SmartWin.lib) does not match the Library's OutputFile property value (E:\cpp_libs\SmartWin\Lib\SmartWinD.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(SmartWin) does not match the Library's OutputFile property value (SmartWinD). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 1> SmartWin.vcxproj -> E:\cpp_libs\SmartWin\Lib\SmartWin.lib 2>------ Build started: Project: WidgetToolbar, Configuration: Debug Win32 ------ 2> Main.cpp 2> Unknown compiler version - please run the configure tests and report the results 2> 2>WidgetToolbar.rc(21): error RC2144: PRIMARY LANGUAGE ID not a number 2> 2> 2>WidgetToolbar.rc(59): error RC2135: file not found: LANGUAGE 2> 2> 2>WidgetToolbar.rc(68): error RC2135: file not found: 101 2> 2> 2>WidgetToolbar.rc(83): error RC2135: file not found: "BITMAP1.BMP" 2> ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ======== I look forward to receiving your feedback. Best regards / Asif On Tue, Mar 22, 2011 at 11:59 AM, asif saeed <asi...@gm...> wrote: Hi, I am trying to build SmartWinUnitTest solution but the build results in the following errors: ================================================================================================================================== 1>------ Build started: Project: SampleWidgets, Configuration: Debug Win32 ------ 2>------ Build started: Project: SmartWin, Configuration: Debug Win32 ------ 2>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(E:\cpp_libs\SmartWin\Lib\SmartWin.lib) does not match the Library's OutputFile property value (E:\cpp_libs\SmartWin\Lib\SmartWinD.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 2>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(SmartWin) does not match the Library's OutputFile property value (SmartWinD). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 2> SmartWin.vcxproj -> E:\cpp_libs\SmartWin\Lib\SmartWin.lib 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(62): error RC2135: file not found: LANGUAGE 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(71): error RC2135: file not found: 101 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(72): error RC2135: file not found: 102 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(73): error RC2135: file not found: 103 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(74): error RC2135: file not found: 105 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(83): error RC2135: file not found: 104 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(98): error RC2135: file not found: "ICON1.ICO" 1> 3>------ Build started: Project: WidgetSlider, Configuration: Debug Win32 ------ 4>------ Build started: Project: NotePad, Configuration: Debug Win32 ------ 3> 3>WidgetSlider.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number 3> 3> 3>WidgetSlider.rc(58): error RC2135: file not found: LANGUAGE 3> 3> 3>WidgetSlider.rc(67): error RC2135: file not found: 101 3> 3> 3>WidgetSlider.rc(82): error RC2135: file not found: "BITMAP.BMP" 3> 4> 4>NotePad.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 4> 4> 4>NotePad.rc(62): error RC2135: file not found: LANGUAGE 4> 4> 4>NotePad.rc(71): error RC2135: file not found: 101 4> 5>------ Build started: Project: TicTacToe, Configuration: Debug Win32 ------ 6>------ Build started: Project: Calculator, Configuration: Debug Win32 ------ 5> 5>TicTacToe.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 5> 5> 5>TicTacToe.rc(63): error RC2135: file not found: LANGUAGE 5> 5> 5>TicTacToe.rc(74): error RC2135: file not found: 101 5> 5> 5>TicTacToe.rc(81): error RC2135: file not found: 102 5> 5> 5>TicTacToe.rc(96): error RC2135: file not found: "CURSOR1.CUR" 5> 6> 6>Calculator.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 6> 6> 6>Calculator.rc(63): error RC2135: file not found: LANGUAGE 6> 6> 6>Calculator.rc(72): error RC2135: file not found: 101 6> 7>------ Build started: Project: WidgetWindowSubclassed, Configuration: Debug Win32 ------ 8>------ Build started: Project: WidgetToolbar, Configuration: Debug Win32 ------ 7> 7>WidgetWindowSubclassed.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number 7> 7> 7>WidgetWindowSubclassed.rc(58): error RC2135: file not found: LANGUAGE 7> 7> 7>WidgetWindowSubclassed.rc(67): error RC2135: file not found: 101 7> 8> 8>WidgetToolbar.rc(21): error RC2144: PRIMARY LANGUAGE ID not a number 8> 8> 8>WidgetToolbar.rc(59): error RC2135: file not found: LANGUAGE 8> 8> 8>WidgetToolbar.rc(68): error RC2135: file not found: 101 8> 8> 8>WidgetToolbar.rc(83): error RC2135: file not found: "BITMAP1.BMP" 8> 9>------ Build started: Project: WidgetList, Configuration: Debug Win32 ------ 9> 9>WidgetList.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number 9> 9> 9>WidgetList.rc(55): error RC2135: file not found: 103 9> 9> 9>WidgetList.rc(56): error RC2135: file not found: 104 9> 9> 9>WidgetList.rc(57): error RC2135: file not found: 105 9> 9> 9>WidgetList.rc(66): error RC2135: file not found: 106 9> 9> 9>WidgetList.rc(81): error RC2135: file not found: "ICON1.ICO" 9> ========== Build: 1 succeeded, 8 failed, 35 up-to-date, 0 skipped ========== ================================================================================================================================== Could you please give a quick solution? There was LANG_NORWEGIAN specified as the LANGUAGE identifier - I tried to replace that with LANG_USER_DEFAULT and sub-language id with LANG_SYSTEM_DEFAULT but the build still fails. Bitmap and icon file related errors are strange because bitmap/icon files are there but somehow the build cannot find them. Look forward to receiving your feedback. Thanks & best regards / Asif -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar -------------------------------------------------------------------------------- _______________________________________________ SmartWin-General mailing list Sma...@li... https://lists.sourceforge.net/lists/listinfo/smartwin-general |
From: asif s. <asi...@gm...> - 2011-03-22 10:12:57
|
Hi Andrew, On Mon, Mar 21, 2011 at 6:02 PM, <and...@co...> wrote: The *curiously recurring template pattern* (*CRTP*) is a C++ idiom in which >> a class X derives from a class template instantiation using X itself as >> template argument >> > I have been using CRTP for quite sometime now. In fact, recently, I designed my own factory-based widgets like the way you have done in case of SmartWin. However, you have done a great deal of other things such as connecting Windows events to your functions. This I have not done so far. So, I want to use your library. Best regards / Asif |
From: asif s. <asi...@gm...> - 2011-03-22 09:16:20
|
Hi Andrew, I ***thought*** that pointers to members were implemented as displacements from some base address - that's why you can create and initialize a pointer to member before you create an instance of its class. But the page that you have attached suggests that things are implemented differently perhaps. Best regards / asif On Mon, Mar 21, 2011 at 6:02 PM, <and...@co...> wrote: > Hello Asif, > > briefly: > > I have attached some more instructions specific to VC++ 2010. > > Now I see that http://smartwin.sourceforge.net/getting_started.php needs > to be updated. Use http://smartwin.sourceforge.net/doc/ instead. > > For example, you can see information on Linux there under: “Related Files| > Winelib on Linux “ > or use Doxygen to generate the documentation. > > > RE: I see only main() at the following page: > http://smartwin.sourceforge.net/getting_started.php > Can I bring main() back? > -- Probably yes, if you remove the main in application.cpp, and do what it > does. > > must run ... > > best regards, Andrew > > The *curiously recurring template pattern* (*CRTP*) is a C++ idiom in > which a class X derives from a class template instantiation using X itself > as template argument > Stroustrup: The C++ Programming Language (Third Edition)<http://www2.research.att.com/%7Ebs/3rd.html>== TC++PL > *Substitution failure is not an error* (*SFINAE*) > http://en.wikipedia.org/wiki/Substitution_failure_is_not_an_error > > > > *From:* asif saeed <asi...@gm...> > *Sent:* Monday, March 21, 2011 6:14 AM > *To:* sma...@li... > *Subject:* [SmartWin-General] SmartWin / Mutithreading > > Hi, > > I must say that SmartWin is awesome. Too bad you didn't create a Linux/Unix > port. Is there any Linux port effort underway? > > I am a newbie to SmartWin. I wonder what the implications of using SmartWin > in multi-threaded projects are. Though I am very likely not as good a > template expert as you guys are but I have certainly used CRTP to create > factories in a similar manner as can be gleaned from HelloSmartWin project. > I didn't connect events to slots though via templates. I have been reading > TC++PL for ages but haven't yet read the other books (Modern C++ Design, for > example) that you guys have read. > > Can you guys also provide links to SFINAE that I can use to update myself > on it? > > Best regards / Asif > > ------------------------------ > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > > ------------------------------ > _______________________________________________ > SmartWin-General mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartwin-general > > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > SmartWin-General mailing list > Sma...@li... > https://lists.sourceforge.net/lists/listinfo/smartwin-general > > |
From: asif s. <asi...@gm...> - 2011-03-22 07:23:23
|
Hi, I followed all the instructions in the msvc10.html file provided earlier and tried to build just WidgetToolbar project again which resulted in the following errors: 1>------ Build started: Project: SmartWin, Configuration: Debug Win32 ------ 1> trackable.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> slot.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> signal_base.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> named_slot_map.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> connection.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> WidgetSplitter.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Widget.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> PrintCanvas.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Message.cpp 1> LibraryLoader.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> ImageList.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Icon.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Font.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> DestructionClass.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> CommandLine.cpp 1> CanvasClasses.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Bitmap.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> BasicTypes.cpp 1> Application.cpp 1> Unknown compiler version - please run the configure tests and report the results 1> Generating Code... 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(E:\cpp_libs\SmartWin\Lib\SmartWin.lib) does not match the Library's OutputFile property value (E:\cpp_libs\SmartWin\Lib\SmartWinD.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 1>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(SmartWin) does not match the Library's OutputFile property value (SmartWinD). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 1> SmartWin.vcxproj -> E:\cpp_libs\SmartWin\Lib\SmartWin.lib 2>------ Build started: Project: WidgetToolbar, Configuration: Debug Win32 ------ 2> Main.cpp 2> Unknown compiler version - please run the configure tests and report the results 2> 2>WidgetToolbar.rc(21): error RC2144: PRIMARY LANGUAGE ID not a number 2> 2> 2>WidgetToolbar.rc(59): error RC2135: file not found: LANGUAGE 2> 2> 2>WidgetToolbar.rc(68): error RC2135: file not found: 101 2> 2> 2>WidgetToolbar.rc(83): error RC2135: file not found: "BITMAP1.BMP" 2> ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ======== I look forward to receiving your feedback. Best regards / Asif On Tue, Mar 22, 2011 at 11:59 AM, asif saeed <asi...@gm...> wrote: > Hi, > > I am trying to build SmartWinUnitTest solution but the build results in the > following errors: > > > ================================================================================================================================== > 1>------ Build started: Project: SampleWidgets, Configuration: Debug Win32 > ------ > 2>------ Build started: Project: SmartWin, Configuration: Debug Win32 > ------ > 2>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning > MSB8012: TargetPath(E:\cpp_libs\SmartWin\Lib\SmartWin.lib) does not match > the Library's OutputFile property value > (E:\cpp_libs\SmartWin\Lib\SmartWinD.lib). This may cause your project to > build incorrectly. To correct this, please make sure that $(OutDir), > $(TargetName) and $(TargetExt) property values match the value specified in > %(Lib.OutputFile). > 2>C:\Program > Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning > MSB8012: TargetName(SmartWin) does not match the Library's OutputFile > property value (SmartWinD). This may cause your project to build > incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) > and $(TargetExt) property values match the value specified in > %(Lib.OutputFile). > 2> SmartWin.vcxproj -> E:\cpp_libs\SmartWin\Lib\SmartWin.lib > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(24): > error RC2144: PRIMARY LANGUAGE ID not a number > 1> > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(62): > error RC2135: file not found: LANGUAGE > 1> > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(71): > error RC2135: file not found: 101 > 1> > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(72): > error RC2135: file not found: 102 > 1> > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(73): > error RC2135: file not found: 103 > 1> > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(74): > error RC2135: file not found: 105 > 1> > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(83): > error RC2135: file not found: 104 > 1> > 1> > 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(98): > error RC2135: file not found: "ICON1.ICO" > 1> > 3>------ Build started: Project: WidgetSlider, Configuration: Debug Win32 > ------ > 4>------ Build started: Project: NotePad, Configuration: Debug Win32 ------ > 3> > 3>WidgetSlider.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number > 3> > 3> > 3>WidgetSlider.rc(58): error RC2135: file not found: LANGUAGE > 3> > 3> > 3>WidgetSlider.rc(67): error RC2135: file not found: 101 > 3> > 3> > 3>WidgetSlider.rc(82): error RC2135: file not found: "BITMAP.BMP" > 3> > 4> > 4>NotePad.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number > 4> > 4> > 4>NotePad.rc(62): error RC2135: file not found: LANGUAGE > 4> > 4> > 4>NotePad.rc(71): error RC2135: file not found: 101 > 4> > 5>------ Build started: Project: TicTacToe, Configuration: Debug Win32 > ------ > 6>------ Build started: Project: Calculator, Configuration: Debug Win32 > ------ > 5> > 5>TicTacToe.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number > 5> > 5> > 5>TicTacToe.rc(63): error RC2135: file not found: LANGUAGE > 5> > 5> > 5>TicTacToe.rc(74): error RC2135: file not found: 101 > 5> > 5> > 5>TicTacToe.rc(81): error RC2135: file not found: 102 > 5> > 5> > 5>TicTacToe.rc(96): error RC2135: file not found: "CURSOR1.CUR" > 5> > 6> > 6>Calculator.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number > 6> > 6> > 6>Calculator.rc(63): error RC2135: file not found: LANGUAGE > 6> > 6> > 6>Calculator.rc(72): error RC2135: file not found: 101 > 6> > 7>------ Build started: Project: WidgetWindowSubclassed, Configuration: > Debug Win32 ------ > 8>------ Build started: Project: WidgetToolbar, Configuration: Debug Win32 > ------ > 7> > 7>WidgetWindowSubclassed.rc(20): error RC2144: PRIMARY LANGUAGE ID not a > number > 7> > 7> > 7>WidgetWindowSubclassed.rc(58): error RC2135: file not found: LANGUAGE > 7> > 7> > 7>WidgetWindowSubclassed.rc(67): error RC2135: file not found: 101 > 7> > 8> > 8>WidgetToolbar.rc(21): error RC2144: PRIMARY LANGUAGE ID not a number > 8> > 8> > 8>WidgetToolbar.rc(59): error RC2135: file not found: LANGUAGE > 8> > 8> > 8>WidgetToolbar.rc(68): error RC2135: file not found: 101 > 8> > 8> > 8>WidgetToolbar.rc(83): error RC2135: file not found: "BITMAP1.BMP" > 8> > 9>------ Build started: Project: WidgetList, Configuration: Debug Win32 > ------ > 9> > 9>WidgetList.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number > 9> > 9> > 9>WidgetList.rc(55): error RC2135: file not found: 103 > 9> > 9> > 9>WidgetList.rc(56): error RC2135: file not found: 104 > 9> > 9> > 9>WidgetList.rc(57): error RC2135: file not found: 105 > 9> > 9> > 9>WidgetList.rc(66): error RC2135: file not found: 106 > 9> > 9> > 9>WidgetList.rc(81): error RC2135: file not found: "ICON1.ICO" > 9> > ========== Build: 1 succeeded, 8 failed, 35 up-to-date, 0 skipped > ========== > > > ================================================================================================================================== > > Could you please give a quick solution? There was LANG_NORWEGIAN specified > as the LANGUAGE identifier - I tried to replace that with LANG_USER_DEFAULT > and sub-language id with LANG_SYSTEM_DEFAULT but the build still fails. > Bitmap and icon file related errors are strange because bitmap/icon files > are there but somehow the build cannot find them. > > Look forward to receiving your feedback. > > Thanks & best regards / Asif > > > > > > > |
From: asif s. <asi...@gm...> - 2011-03-22 06:59:48
|
Hi, I am trying to build SmartWinUnitTest solution but the build results in the following errors: ================================================================================================================================== 1>------ Build started: Project: SampleWidgets, Configuration: Debug Win32 ------ 2>------ Build started: Project: SmartWin, Configuration: Debug Win32 ------ 2>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1151,5): warning MSB8012: TargetPath(E:\cpp_libs\SmartWin\Lib\SmartWin.lib) does not match the Library's OutputFile property value (E:\cpp_libs\SmartWin\Lib\SmartWinD.lib). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 2>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets(1153,5): warning MSB8012: TargetName(SmartWin) does not match the Library's OutputFile property value (SmartWinD). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Lib.OutputFile). 2> SmartWin.vcxproj -> E:\cpp_libs\SmartWin\Lib\SmartWin.lib 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(62): error RC2135: file not found: LANGUAGE 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(71): error RC2135: file not found: 101 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(72): error RC2135: file not found: 102 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(73): error RC2135: file not found: 103 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(74): error RC2135: file not found: 105 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(83): error RC2135: file not found: 104 1> 1> 1>..\PocketPC\SmartWinDevicesUnitTests\SampleWidgets\SampleWidgets.rc(98): error RC2135: file not found: "ICON1.ICO" 1> 3>------ Build started: Project: WidgetSlider, Configuration: Debug Win32 ------ 4>------ Build started: Project: NotePad, Configuration: Debug Win32 ------ 3> 3>WidgetSlider.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number 3> 3> 3>WidgetSlider.rc(58): error RC2135: file not found: LANGUAGE 3> 3> 3>WidgetSlider.rc(67): error RC2135: file not found: 101 3> 3> 3>WidgetSlider.rc(82): error RC2135: file not found: "BITMAP.BMP" 3> 4> 4>NotePad.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 4> 4> 4>NotePad.rc(62): error RC2135: file not found: LANGUAGE 4> 4> 4>NotePad.rc(71): error RC2135: file not found: 101 4> 5>------ Build started: Project: TicTacToe, Configuration: Debug Win32 ------ 6>------ Build started: Project: Calculator, Configuration: Debug Win32 ------ 5> 5>TicTacToe.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 5> 5> 5>TicTacToe.rc(63): error RC2135: file not found: LANGUAGE 5> 5> 5>TicTacToe.rc(74): error RC2135: file not found: 101 5> 5> 5>TicTacToe.rc(81): error RC2135: file not found: 102 5> 5> 5>TicTacToe.rc(96): error RC2135: file not found: "CURSOR1.CUR" 5> 6> 6>Calculator.rc(24): error RC2144: PRIMARY LANGUAGE ID not a number 6> 6> 6>Calculator.rc(63): error RC2135: file not found: LANGUAGE 6> 6> 6>Calculator.rc(72): error RC2135: file not found: 101 6> 7>------ Build started: Project: WidgetWindowSubclassed, Configuration: Debug Win32 ------ 8>------ Build started: Project: WidgetToolbar, Configuration: Debug Win32 ------ 7> 7>WidgetWindowSubclassed.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number 7> 7> 7>WidgetWindowSubclassed.rc(58): error RC2135: file not found: LANGUAGE 7> 7> 7>WidgetWindowSubclassed.rc(67): error RC2135: file not found: 101 7> 8> 8>WidgetToolbar.rc(21): error RC2144: PRIMARY LANGUAGE ID not a number 8> 8> 8>WidgetToolbar.rc(59): error RC2135: file not found: LANGUAGE 8> 8> 8>WidgetToolbar.rc(68): error RC2135: file not found: 101 8> 8> 8>WidgetToolbar.rc(83): error RC2135: file not found: "BITMAP1.BMP" 8> 9>------ Build started: Project: WidgetList, Configuration: Debug Win32 ------ 9> 9>WidgetList.rc(20): error RC2144: PRIMARY LANGUAGE ID not a number 9> 9> 9>WidgetList.rc(55): error RC2135: file not found: 103 9> 9> 9>WidgetList.rc(56): error RC2135: file not found: 104 9> 9> 9>WidgetList.rc(57): error RC2135: file not found: 105 9> 9> 9>WidgetList.rc(66): error RC2135: file not found: 106 9> 9> 9>WidgetList.rc(81): error RC2135: file not found: "ICON1.ICO" 9> ========== Build: 1 succeeded, 8 failed, 35 up-to-date, 0 skipped ========== ================================================================================================================================== Could you please give a quick solution? There was LANG_NORWEGIAN specified as the LANGUAGE identifier - I tried to replace that with LANG_USER_DEFAULT and sub-language id with LANG_SYSTEM_DEFAULT but the build still fails. Bitmap and icon file related errors are strange because bitmap/icon files are there but somehow the build cannot find them. Look forward to receiving your feedback. Thanks & best regards / Asif |
From: Thomas H. <tho...@wi...> - 2011-03-21 17:23:59
|
On Mon, Mar 21, 2011 at 3:27 AM, asif saeed <asi...@gm...> wrote: > Hi, > > I see only main() at the following page: > > http://smartwin.sourceforge.net/getting_started.php > > While HelloSmartWin has SmartWinMain. Can I bring main() back? > > You can bring it back, as long as you do the stuff WmartWinMain does, but why would you ...? Are you looking for the parameters ...? If you are there are helper classes for doing that in SmartWin ... I think there should be an example of its use too ... .t -- Thomas Hansen 415-515-6460 http://winergyinc.com - Harvesting Loyal Fans and Ambassadors for YOUR winery |
From: <and...@co...> - 2011-03-21 13:02:58
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>SmartWin++ Guide for Visual Studio 2010</title> </head> <body> <h2>Instructions for Microsoft Visual C++ 10.0 </h2> <h3>Select the right SmartWin++ download, which is SmartWin2010.zip.</h3> <p> In VC++ Express, use "Tools | Settings | Expert Settings" so you have access to the "Property Manager" in the View menu.</p> <h3>Configure VC 10 for SmartWin++ </h3> <p> VS2010 needs new .vcxproj projects, and no longer allows Tools | Options | VC++ Directories. So now every project includes a smartwinprop.props that does the same thing. However, it does not support relative paths, so you must manually edit it so it points into your directory structure. </p> <p>Edit the <IncludePath> and <LibraryPath> in smartwin\smartwinprop.props. <br> </p> <h3> Creating a new SmartWin++ Project </h3> <p>Use File | New | Project | Visual C++ Projects, and then select the <b>Win32 Project template</b> close to the bottom. Select a directory and then enter a project name. In Application Settings, check "Empty project", and press Finish. </p> <p>Use the menu option: View | "Property manager", and expand your new project. For both debug and release, Right click, and "Add Existing Property Sheet". Select smartwinprop.props from the smartwin directory.</p> <p> Use the Menu option " View Solution Explorer"</p> <p>Right click on the project for Properties. </p> <p>Click on "Common Properties" | "Add New Reference", and add Smartwin. (Assumes a Solution with Smartwin project.)</p> <p>Click on Configuration Properties. Then set C/C++ | Language | <b>Enable Run-Time Type Info </b>to Yes (/GR) for both Debug and Release.</p> <p>Set C/C++ | Code Generation | <b>Run time Library </b>to Multi-threaded Debug, and Multi-threaded (Release) (Smartwin and your project must use the same)</p> <p>Set General | <b>Character Set Library </b>to Multi-Byte, (Debug and Release) (Smartwin and your project must use the same)</p> <p> Add a .cpp file for your program.</p> <p>Now would be a good time to build the debug and release versions to check your entries. </p> <h3> </h3> <h3>A pragma problem found while updating Smartwin++ for VC++ 2010 </h3> <p> Programs compiled in VS2010 release mode worked perfectly. However Microsoft's pointers_to_members #pragma would cause a program to crash in debug mode if part of it was compiled with the pragma, and part without. </p> <p> The solution adopted was to require /vmg for all SmartWin projects, and removed the #pragma. Since "smartwinprop.props" is now required for SmartWin projects on VS2010, /vmg was placed in that file. </p> <p> Definition: Use /vmg to declare a pointer to a member of a class before defining the class. This need can arise if you define members in two different classes that reference each other. For such mutually referencing classes, one class must be referenced before it is defined. </p> <h4> What Microsoft Said</h4> <pre> Near the top of file include\SmartWin\Smartwin.h there is: // We also need to tell the compiler that it needs to link pointer to members as // virtual multiple inheritance pointers. We generally want as little as possible // of Project Settings therefore we set this directly in the code instead of // forcing the library user to set lots of different settings before managing to // compile his project. #pragma pointers_to_members( full_generality, virtual_inheritance ) </pre> <p> The pragma will affect how pointers_to_members (PTM) types are implemented. By default the compiler would try to figure out the best way to represent the PTM, with the above pragma settings, any PTM that follows will have the general representation. Crt headers contain some PTM type functions, in our case ostream file has a few instances of this. One source file (stream_err.cpp) includes Smartwin.h which later also includes CRT headers like ostream. The code generated for stream_err will have PTM implemented in the general representation. Another source file (application.cpp) does not include the pragma but has similar CRT headers. The code generated for application.cpp will have PTM implemented based on the compiler decisions (if compiler can find enough info on PTM then it will choose the best case, else choose general case). The linker will take the obj files and will choose one of the PTM implementations (since their names and signature are the same). The AV occurs because a routine will call the PTM routine assuming to have a return value represented in one way but it is represented in another way. </p> <p> This issue can be fixed in your source code in different ways. If you really need the pragma then I suggest either making the pragma consistent to all source code or to limit it to only places to where it applies. One question that came up during investigation is if you really need this pragma? I believe having __inheritance keywords to the classes can be a better way of enforcing the class to be treated as virtual_inheritance (http://msdn.microsoft.com/en-us/library/ck561bfk(VS.80).aspx) . </p> <h3>Troubleshooting </h3> <ul> <h4>Compiler Errors</h4> <li> C1083: Cannot open include file: 'SmartWin.h': No such file or directory <br> Ensure you used "Property manager" to add smartwinprop.props. Ensure you edited it to point to the right SmartWin directory <li> C2512:SmartWin::WidgetXXX<...> no appropriate default constructor available <br> Perhaps you forgot the * in the declaration of WidgetXXX me; instead of WidgetXXX *me; </li> </ul> <ul> <h4>Linker Errors</h4> <li> warning C4541: 'typeid' used on polymorphic type ... with /GR. <br> You forgot to specify to use runtime type information. <LI> error LNK2019: unresolved external symbol "public: int __thiscall SmartWin::Application::run ..... <br> You forgot to add the SmartWin++ library when you created the project. <LI> LNK1104: cannot open file 'SmartWinD.lib' <br> Put the SmartWin lib directory into Tools | Options | Projects | Directories | linker </LI> <li> SmartWinU.lib(Application.obj) : error LNK2005: "... already defined in smartwin.lib(Application.obj) <br> Perhaps you are mixing a MBS compiled smartwin.lib with a unicode application. </li> </ul> <ul> <h4>Runtime Errors </h4> <li> Exception CreateWindowEx in Widget::create fizzled <br> One source: You linked with a multibyte Smartwin lib, but have a unicode program. (It makes the Windows class names not match) </ul> </body> </html> |
From: asif s. <asi...@gm...> - 2011-03-21 11:54:51
|
Hi, Some examples are not running. For example, building WidgetToolBar results in the following errors: 1>------ Build started: Project: WidgetToolbar, Configuration: Debug Win32 ------ 1> Main.cpp 1> Unknown compiler version - please run the configure tests and report the results 1>e:\cpp_libs\smartwin\include\smartwin\aspects\aspectsizable.h(692): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall CoolbarTest::* )(const SmartWin::WidgetSizedEventResult &)' to 'SmartWin::itsVoidFunction' 1> Pointers to members have different representations; cannot cast between them 1> e:\cpp_libs\smartwin\include\smartwin\aspects\aspectsizable.h(683) : while compiling class template member function 'void SmartWin::AspectSizable<EventHandlerClass,WidgetType,MessageMapType>::onSized(void (__thiscall CoolbarTest::* )(const SmartWin::WidgetSizedEventResult &))' 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetWindowBase<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMap<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetwindowbase.h(184) : see reference to class template instantiation 'SmartWin::AspectSizable<EventHandlerClass,WidgetType,MessageMapType>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetWindowBase<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMap<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetwindow.h(55) : see reference to class template instantiation 'SmartWin::WidgetWindowBase<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgetfactoryplatformsmartwindesktop.h(52) : see reference to class template instantiation 'SmartWin::WidgetWindow<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgetfactory.h(97) : see reference to class template instantiation 'SmartWin::WidgetFactoryPlatformImplementation<ContainerWidgetType,EventHandlerClass,MessageMapPolicy,__formal>' being compiled 1> with 1> [ 1> ContainerWidgetType=SmartWin::WidgetWindow, 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget, 1> __formal=SmartWinDesktop 1> ] 1> e:\cpp_libs\smartwin\tests\widgettoolbar\main.cpp(23) : see reference to class template instantiation 'SmartWin::WidgetFactory<ContainerWidgetType,EventHandlerClass>' being compiled 1> with 1> [ 1> ContainerWidgetType=SmartWin::WidgetWindow, 1> EventHandlerClass=CoolbarTest 1> ] 1>e:\cpp_libs\smartwin\include\smartwin\aspects\aspectselection.h(174): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall CoolbarTest::* )(WidgetType *)' to 'SmartWin::itsVoidFunction' 1> with 1> [ 1> WidgetType=SmartWin::WidgetComboBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Pointers to members have different representations; cannot cast between them 1> e:\cpp_libs\smartwin\include\smartwin\aspects\aspectselection.h(168) : while compiling class template member function 'void SmartWin::AspectSelection<EventHandlerClass,WidgetType,MessageMapType>::onSelectionChanged(void (__thiscall CoolbarTest::* )(WidgetType *))' 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetComboBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetComboBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetcombobox.h(86) : see reference to class template instantiation 'SmartWin::AspectSelection<EventHandlerClass,WidgetType,MessageMapType>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetComboBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetComboBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetcoolbar.h(131) : see reference to class template instantiation 'SmartWin::WidgetComboBox<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgetfactoryplatformsmartwindesktop.h(91) : see reference to class template instantiation 'SmartWin::WidgetCoolbar<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1>e:\cpp_libs\smartwin\include\smartwin\aspects\aspectupdate.h(76): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall CoolbarTest::* )(WidgetType *)' to 'SmartWin::itsVoidFunction' 1> with 1> [ 1> WidgetType=SmartWin::WidgetTextBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Pointers to members have different representations; cannot cast between them 1> e:\cpp_libs\smartwin\include\smartwin\aspects\aspectupdate.h(70) : while compiling class template member function 'void SmartWin::AspectUpdate<EventHandlerClass,WidgetType,MessageMapType>::onUpdate(void (__thiscall CoolbarTest::* )(WidgetType *))' 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetTextBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetTextBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgettextbox.h(120) : see reference to class template instantiation 'SmartWin::AspectUpdate<EventHandlerClass,WidgetType,MessageMapType>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetTextBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetTextBox<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetcoolbar.h(137) : see reference to class template instantiation 'SmartWin::WidgetTextBox<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1>e:\cpp_libs\smartwin\include\smartwin\aspects\aspectclickable.h(77): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall CoolbarTest::* )(WidgetType *)' to 'SmartWin::itsVoidFunction' 1> with 1> [ 1> WidgetType=SmartWin::WidgetButton<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Pointers to members have different representations; cannot cast between them 1> e:\cpp_libs\smartwin\include\smartwin\aspects\aspectclickable.h(71) : while compiling class template member function 'void SmartWin::AspectClickable<EventHandlerClass,WidgetType,MessageMapType>::onClicked(void (__thiscall CoolbarTest::* )(WidgetType *))' 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetButton<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetButton<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetbutton.h(76) : see reference to class template instantiation 'SmartWin::AspectClickable<EventHandlerClass,WidgetType,MessageMapType>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetButton<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetButton<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetcoolbar.h(143) : see reference to class template instantiation 'SmartWin::WidgetButton<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1>e:\cpp_libs\smartwin\include\smartwin\aspects\aspectselection.h(174): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall CoolbarTest::* )(WidgetType *)' to 'SmartWin::itsVoidFunction' 1> with 1> [ 1> WidgetType=SmartWin::WidgetTreeView<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Pointers to members have different representations; cannot cast between them 1> e:\cpp_libs\smartwin\include\smartwin\aspects\aspectselection.h(168) : while compiling class template member function 'void SmartWin::AspectSelection<EventHandlerClass,WidgetType,MessageMapType>::onSelectionChanged(void (__thiscall CoolbarTest::* )(WidgetType *))' 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetTreeView<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetTreeView<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgettreeview.h(138) : see reference to class template instantiation 'SmartWin::AspectSelection<EventHandlerClass,WidgetType,MessageMapType>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> WidgetType=SmartWin::WidgetTreeView<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMapControl<CoolbarTest,SmartWin::WidgetTreeView<CoolbarTest,SmartWin::MessageMapPolicyNormalWidget>,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetcoolbar.h(149) : see reference to class template instantiation 'SmartWin::WidgetTreeView<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=CoolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1>e:\cpp_libs\smartwin\include\smartwin\aspects\aspectsizable.h(692): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall ToolbarTest::* )(const SmartWin::WidgetSizedEventResult &)' to 'SmartWin::itsVoidFunction' 1> Pointers to members have different representations; cannot cast between them 1> e:\cpp_libs\smartwin\include\smartwin\aspects\aspectsizable.h(683) : while compiling class template member function 'void SmartWin::AspectSizable<EventHandlerClass,WidgetType,MessageMapType>::onSized(void (__thiscall ToolbarTest::* )(const SmartWin::WidgetSizedEventResult &))' 1> with 1> [ 1> EventHandlerClass=ToolbarTest, 1> WidgetType=SmartWin::WidgetWindowBase<ToolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMap<ToolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetwindowbase.h(184) : see reference to class template instantiation 'SmartWin::AspectSizable<EventHandlerClass,WidgetType,MessageMapType>' being compiled 1> with 1> [ 1> EventHandlerClass=ToolbarTest, 1> WidgetType=SmartWin::WidgetWindowBase<ToolbarTest,SmartWin::MessageMapPolicyNormalWidget>, 1> MessageMapType=SmartWin::MessageMap<ToolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgetwindow.h(55) : see reference to class template instantiation 'SmartWin::WidgetWindowBase<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=ToolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgetfactoryplatformsmartwindesktop.h(52) : see reference to class template instantiation 'SmartWin::WidgetWindow<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=ToolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgetfactory.h(97) : see reference to class template instantiation 'SmartWin::WidgetFactoryPlatformImplementation<ContainerWidgetType,EventHandlerClass,MessageMapPolicy,__formal>' being compiled 1> with 1> [ 1> ContainerWidgetType=SmartWin::WidgetWindow, 1> EventHandlerClass=ToolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget, 1> __formal=SmartWinDesktop 1> ] 1> e:\cpp_libs\smartwin\tests\widgettoolbar\main.cpp(211) : see reference to class template instantiation 'SmartWin::WidgetFactory<ContainerWidgetType,EventHandlerClass>' being compiled 1> with 1> [ 1> ContainerWidgetType=SmartWin::WidgetWindow, 1> EventHandlerClass=ToolbarTest 1> ] 1>e:\cpp_libs\smartwin\include\smartwin\widgets\widgettoolbar.h(568): error C2440: 'reinterpret_cast' : cannot convert from 'void (__thiscall ToolbarTest::* )(WidgetType *,unsigned int)' to 'SmartWin::itsVoidFunction' 1> with 1> [ 1> WidgetType=SmartWin::WidgetToolbar<ToolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> Pointers to members have different representations; cannot cast between them 1> e:\cpp_libs\smartwin\include\smartwin\widgets\widgettoolbar.h(536) : while compiling class template member function 'void SmartWin::WidgetToolbar<EventHandlerClass,MessageMapPolicy>::addButton(unsigned int,int,const SmartUtil::tstring &,const SmartUtil::tstring &,bool,void (__thiscall ToolbarTest::* )(WidgetType *,unsigned int))' 1> with 1> [ 1> EventHandlerClass=ToolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget, 1> WidgetType=SmartWin::WidgetToolbar<ToolbarTest,SmartWin::MessageMapPolicyNormalWidget> 1> ] 1> e:\cpp_libs\smartwin\include\smartwin\widgetfactoryplatformsmartwindesktop.h(85) : see reference to class template instantiation 'SmartWin::WidgetToolbar<EventHandlerClass,MessageMapPolicy>' being compiled 1> with 1> [ 1> EventHandlerClass=ToolbarTest, 1> MessageMapPolicy=SmartWin::MessageMapPolicyNormalWidget 1> ] ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== Best regards / Asif |
From: asif s. <asi...@gm...> - 2011-03-21 10:27:07
|
Hi, I see only main() at the following page: http://smartwin.sourceforge.net/getting_started.php While HelloSmartWin has SmartWinMain. Can I bring main() back? Thanks & Best regards / Asif |
From: asif s. <asi...@gm...> - 2011-03-21 10:14:44
|
Hi, I must say that SmartWin is awesome. Too bad you didn't create a Linux/Unix port. Is there any Linux port effort underway? I am a newbie to SmartWin. I wonder what the implications of using SmartWin in multi-threaded projects are. Though I am very likely not as good a template expert as you guys are but I have certainly used CRTP to create factories in a similar manner as can be gleaned from HelloSmartWin project. I didn't connect events to slots though via templates. I have been reading TC++PL for ages but haven't yet read the other books (Modern C++ Design, for example) that you guys have read. Can you guys also provide links to SFINAE that I can use to update myself on it? Best regards / Asif |
From: <and...@co...> - 2011-03-19 20:25:29
|
Hi Asif & Thomas, Since Asif wants to use VC++ 2010 Express, he should use SmartWin2010.zip from http://sourceforge.net/projects/smartwin/files/ which was built with VS2010 C++, and use the sample programs in the smartwin\tests subdirectory. HelloSmartWin was intended as a example of many of the standard smartwin widgets. I just downloaded the VC++ 2010 Express and SmartWin2010.zip, and opened the smartwin\tests\SmartwinUnitTests solution. Edited smartwin\smartwinprops.props to fix the library and include path for the unzipped location. Built smartwin with vc++ 2010 Built and ran HelloSmartWinWorld Built and ran HelloSmartWin http://sourceforge.net/projects/smartwin/forums/forum/318867/topic/3761023 explains that I put SmartWin2010.zip up so that people could see how to use Smartwin with VS2010. Asif apparently was tryng to compile some old examples with a newer library. Perhaps he found some stale online documentation which was never updated to match the most recent library downloads. For example, the member function “setSize” was changed to be “setBounds“ in 2005, between the versions 0.99 and 1.00. e:\projects\scratch\test04\test04\test04.cpp(39): error C3861: 'setSize': identifier not found Asif, Where did you get test04.cpp ? Best regards, Andrew From: Thomas Hansen Sent: Friday, March 18, 2011 12:50 PM To: ge...@sm... Cc: sma...@li... Subject: Re: [SmartWin-General] SmartWin build fails - doesn't convert/load On Fri, Mar 18, 2011 at 3:17 AM, asif saeed <asi...@gm...> wrote: Hi, I am a newbie to SmartWin and really like your library - it is really simple and elegant - I have just read the online examples. The problem is that the VC++ 2010 Express doesn't convert the project (0 files converted is the message) when I download SmartWin2010.zip from http://sourceforge.net/projects/smartwin/files/ and try to open the solution file. Downloading SmartWin1.0.2.zip and opening the solution as specified in the online example (http://smartwin.sourceforge.net/getting_started.php) results in red underlines in some functions (perhaps related to sizing - I have deleted the whole project so cannot recall right now). But I'd really like to work with the latest build using VC++ 2010 Express. I'd be thankful for any help in this respect. Hi Asif, You [probably] need to open the project files, using something such as Notepad or something, and edit the project files. My *guess* is that there are some custom build steps, like for instance; Pre-Build Step - which are not compatible with VS 2010 ... :( .t -- Thomas Hansen 415-515-6460 http://winergyinc.com - Harvesting Loyal Fans and Ambassadors for YOUR winery -------------------------------------------------------------------------------- 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 ========== ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- -------------------------------------------------------------------------------- ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d |
From: Thomas H. <tho...@wi...> - 2011-03-18 16:51:00
|
On Fri, Mar 18, 2011 at 3:17 AM, asif saeed <asi...@gm...> wrote: > Hi, > > I am a newbie to SmartWin and really like your library - it is really > simple and elegant - I have just read the online examples. > > The problem is that the VC++ 2010 Express doesn't convert the project (0 > files converted is the message) when I download SmartWin2010.zip from > http://sourceforge.net/projects/smartwin/files/ and try to open the > solution file. > > Downloading SmartWin1.0.2.zip and opening the solution as specified in the > online example (http://smartwin.sourceforge.net/getting_started.php) > results in red underlines in some functions (perhaps related to sizing - I > have deleted the whole project so cannot recall right now). But I'd really > like to work with the latest build using VC++ 2010 Express. > > I'd be thankful for any help in this respect. > > Hi Asif, You [probably] need to open the project files, using something such as Notepad or something, and edit the project files. My *guess* is that there are some custom build steps, like for instance; Pre-Build Step - which are not compatible with VS 2010 ... :( .t -- Thomas Hansen 415-515-6460 http://winergyinc.com - Harvesting Loyal Fans and Ambassadors for YOUR winery |
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 ========== ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
From: asif s. <asi...@gm...> - 2011-03-18 10:17:43
|
Hi, I am a newbie to SmartWin and really like your library - it is really simple and elegant - I have just read the online examples. The problem is that the VC++ 2010 Express doesn't convert the project (0 files converted is the message) when I download SmartWin2010.zip from http://sourceforge.net/projects/smartwin/files/ and try to open the solution file. Downloading SmartWin1.0.2.zip and opening the solution as specified in the online example (http://smartwin.sourceforge.net/getting_started.php) results in red underlines in some functions (perhaps related to sizing - I have deleted the whole project so cannot recall right now). But I'd really like to work with the latest build using VC++ 2010 Express. I'd be thankful for any help in this respect. Best regards / Asif |
From: SourceForge.net <no...@so...> - 2009-11-03 01:49:55
|
Bugs item #2890956, was opened at 2009-11-02 23:05 Message generated for change (Comment added) made by polterguy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600358&aid=2890956&group_id=92327 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Error in SmartUtil::RegKey::writeDword Initial Comment: There is error in RegSetValueEx call: the 5th arg must be pointer, but we got DWORD which interpet like pointer solution: just add & ---------------------------------------------------------------------- >Comment By: Thomas Hansen (polterguy) Date: 2009-11-03 02:49 Message: Nice one :) If you give me your SF username, I'll add you up as a writer to the repository so that you can change these kind of bugs yourself... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600358&aid=2890956&group_id=92327 |
From: SourceForge.net <no...@so...> - 2009-11-02 22:05:23
|
Bugs item #2890956, was opened at 2009-11-02 22:05 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600358&aid=2890956&group_id=92327 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Error in SmartUtil::RegKey::writeDword Initial Comment: There is error in RegSetValueEx call: the 5th arg must be pointer, but we got DWORD which interpet like pointer solution: just add & ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=600358&aid=2890956&group_id=92327 |