Search found 449 matches

by mael15
Thu Oct 28, 2010 2:13 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

hi andre, i tried objdump and it gives me a 5mb txt file. i do not understand the contents of that file, but here are two examples: compiler error: testingdevicepropertylist.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""bool const wxFalse" ([email protected]@3_NB)". objdump of testingdeviceproper...
by mael15
Wed Oct 27, 2010 4:29 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

ok, here it comes for configLib.dll: first five lines: 1>dlgconfig.obj : error LNK2001: Nicht aufgelöstes externes Symbol ""protected: static struct wxEventTable const wxDialogBase::sm_eventTable" ([email protected]@@[email protected]@B)". 1>plotterconfigevent.obj : error LNK2001: Nicht aufg...
by mael15
Wed Oct 27, 2010 3:26 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

i thought, i.e. WXMAKINGDLL_CORE would not make sense in my dll? when i use all of these options, the errors change to other elements. could you perhaps try to change a wxwidgets sample from using static linking to dynamic? then i could see what steps are nescessary? i tried finding tutorials about ...
by mael15
Wed Oct 27, 2010 2:14 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

ok, i found these preprocessor symbols in the "core" project: WIN32 _USRDLL DLL_EXPORTS _DEBUG __WXMSW__ _UNICODE WXBUILDING WXUSINGDLL WXMAKINGDLL_CORE wxUSE_BASE=0 i delete some of them, remaining these for my dll: WIN32 _USRDLL DLL_EXPORTS _DEBUG __WXMSW__ _UNICODE wxUSE_BASE=0 the error stays th...
by mael15
Wed Oct 27, 2010 1:45 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

i am not sure what you mean by "option", these are the linker command lines: libConfig.dll: /OUT:"E:\libconfig\lib\libConfig.dll" /INCREMENTAL /NOLOGO /LIBPATH:"F:\wxWidgets_2_9/lib/vc_dll" /DLL "comctl32.lib" "rpcrt4.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "comdlg32.lib" "advapi...
by mael15
Wed Oct 27, 2010 1:27 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

ok, i did compile wx using "debug dll" and then change the linking from /LIBPATH:"$(WXWIN)/lib/vc_ lib " to /LIBPATH:"$(WXWIN)/lib/vc_ dll ", right? after that, i get: error LNK2001: Unresolved external symbol ""bool const wxFalse" ([email protected]@3_NB)". ... followed by lots of similar lines. sorry for ...
by mael15
Wed Oct 27, 2010 1:00 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

thanx, guys!
i build wx with this guide:
http://wiki.wxwidgets.org/Microsoft_Vis ... 2B.2B_2010

since there is no makefile, would it be enough to open each of the 22 build projects and add a preprocessor symbol SHARED=1?

i would prefer using shared linking.
by mael15
Wed Oct 27, 2010 12:16 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

hi tan,

yes, configLib.dll is my own library.
this dynamic/static linking with wxlibs is new to me, do you some resource that explains to me what to do?

thanx!
by mael15
Wed Oct 27, 2010 11:29 am
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7237

wxString already defined in dll

hi everybody! i am about to despair over this error: 1>wxbase29ud.lib(object.obj) : error LNK2005: "public: __thiscall wxFormatString::wxFormatString(wchar_t const *)" ([email protected]@[email protected][email protected]) ist bereits in libConfig.lib(libConfig.dll) definiert. 1>wxbase29ud.lib(object.obj) : error LNK2005:...
by mael15
Fri Mar 19, 2010 1:12 pm
Forum: C++ Development
Topic: wxButton on top of wxDC
Replies: 8
Views: 1624

that is exactly what i needed to know, thanx!

for now, i will avoid the slider, only zoom with plus and minus buttons in a sizer, and enable moving the image only by dragging it (no scrollbars).
maybe i will have time for a more perfect version later.
by mael15
Fri Mar 19, 2010 12:36 pm
Forum: C++ Development
Topic: wxButton on top of wxDC
Replies: 8
Views: 1624

i was thinking about something like in google maps, where you have the zoomSlider and the buttons on top of the map. slider and buttons always stay in the same position, only the picture below is moved by scrollbars or dragging. do you think this is possible with wxWidgets? thank you for your input ...
by mael15
Fri Mar 19, 2010 12:13 pm
Forum: C++ Development
Topic: wxButton on top of wxDC
Replies: 8
Views: 1624

alright, this worked, thanx! .... BUT .... :) as soon as i have a sizer in the wxScrolledWindow, according to http://docs.wxwidgets.org/2.8.8/wx_wxscrolledwindow.html#wxscrolledwindow it overrides the possibility to set the pageSize via setScrollbars or SetScrollPageSize. i tried a couple of workaro...
by mael15
Thu Mar 18, 2010 5:12 pm
Forum: C++ Development
Topic: wxButton on top of wxDC
Replies: 8
Views: 1624

ok, in other words, i would like to have a button on top of an area i painted with wxPaintDC. is that possible?

maybe by putting the painted stuff in the window background somehow?
by mael15
Thu Mar 18, 2010 4:34 pm
Forum: C++ Development
Topic: wxButton on top of wxDC
Replies: 8
Views: 1624

wxButton on top of wxDC

hi,

is it possible to have a button on top of a device context?
i would like to have a button that only shows on top of a dc when the mouse is within the dc.

thanx!
by mael15
Mon Mar 15, 2010 12:16 pm
Forum: C++ Development
Topic: wxNotebook corner colour of tabs
Replies: 0
Views: 364

wxNotebook corner colour of tabs

hi,

my problem is, after i change the background colour of wxNotebook to a dark grey, the corners of the tabs still remain light grey which looks bad.
see a picture in the attachment.

how can i change this?
thanx!