]> git.saurik.com Git - wxWidgets.git/commit
Remove DLL export declaration from wxScrolled.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Sep 2009 14:28:42 +0000 (14:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 23 Sep 2009 14:28:42 +0000 (14:28 +0000)
commitcb7c02fd46c59ec4cb399435659db63eb0969d27
tree118b568c114949e66c8c8a8acaa948c67be26667
parent5ec3853fa651d515bd1c32174ffdd5511db77c57
Remove DLL export declaration from wxScrolled.

As this class has only inline methods it doesn't need to be exported from the
DLL and actually exporting it results in linking problems when using
wxScrolled<wxWindow> (which, unlike wxScrolled<wxPanel>, is not used in wx
itself and so doesn't seem to be instantiated) in DLL client even with VC > 6.

An alternative solution would be to change WXDLLIMPEXP_TEMPLATE_INSTANCE_CORE
macro to explicitly instantiate the template in the DLL even for VC > 6 but
this wouldn't solve the problem for wxScrolled<CustomClass> while removing the
DLL export declaration should.

Also use wxScrolled<wxWindow> in addition to wxScrolled<wxPanel> in the scroll
sample to test that it links correctly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/scrolwin.h
samples/scroll/scroll.cpp