Search found 457 matches

by mael15
Wed Feb 16, 2011 10:35 am
Forum: C++ Development
Topic: showModal, but click on wxDC in main window
Replies: 5
Views: 1454

showModal, but click on wxDC in main window

hi everyone, i open a dialog via showModal and within that dialog, i want to activate a possibility to click on a wxDC in the main application. the problem is, I still want to disable clicking on anything else but the wxDC outside of the dialog. is there some way to make an exception to showModal or...
by mael15
Fri Oct 29, 2010 12:00 pm
Forum: Compiler / Linking / IDE Related
Topic: cannot link dynamically to wxWidgets
Replies: 1
Views: 604

problem is solved, i had to change my preprocessor symbols to only _DEBUG and WXUSINGDLL. before that, my project did not use the wx dll version.
by mael15
Fri Oct 29, 2010 11:58 am
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7439

hi andre, i finally found the mistake, my preprocessor symbols where messed up. everything works not with only _DEBUG and WXUSINGDLL. i did not really understand preprocessor symbols before, so i just tried different things that i found on the internet without knowing what i was doing. i also built ...
by mael15
Thu Oct 28, 2010 4:05 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7439

it just convince me that this the origin of your problem
so how can i get the missing symbols to show up in the libs included in the vc_dll dir?!
by mael15
Thu Oct 28, 2010 3:54 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7439

i can compile the dll just fine when i use the lib dir vc_lib instead of vc_dll. but that does not help me, because i MUST link dynamically. otherwise i get a lot of "symbol wxXYZ already defined in XYZ.lib" errors when compiling my app. :?:
by mael15
Thu Oct 28, 2010 3:14 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7439

i checked all 22 libs and "wxFalse" is in none of them. does this mean that something went wrong with the wxWidgets compilation?
by mael15
Thu Oct 28, 2010 2:56 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7439

To be sure you recompile everything, you can force a clean by suppressing all .o files
oh, i see. yes, i used the clean command and it did not change the problem.

how can i find out in which wx lib the symbol wxFalse should be? [/quote]
by mael15
Thu Oct 28, 2010 2:43 pm
Forum: Compiler / Linking / IDE Related
Topic: cannot link dynamically to wxWidgets
Replies: 1
Views: 604

cannot link dynamically to wxWidgets

hi everyone, this is a thread continued from this post in the wxWidgets section: http://forums.wxwidgets.org/viewtopic.php?t=29235 my problem is, that i am not able to get a dynamically linked wxwidgets to work. i have to link dynamically, because my app and one dll both use wx libraries. i use vs20...
by mael15
Thu Oct 28, 2010 2:13 pm
Forum: C++ Development
Topic: wxString already defined in dll
Replies: 30
Views: 7439

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: 7439

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: 7439

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: 7439

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: 7439

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: 7439

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: 7439

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.