Search found 323 matches

by Muetdhiver
Sun Jan 31, 2010 6:32 pm
Forum: C++ Development
Topic: How to sort a wxString
Replies: 4
Views: 1360

How to sort a wxString

Hello !! I have a little question, and i'm very surprise to not having found a solution into this forum (after a search), neither in the documentation. I just want to sort a string: wxString a = _T("DFCEBA"); I just want to obtain ABCDEF into my string. For now, I have the choice to do it ...
by Muetdhiver
Thu Dec 31, 2009 6:33 pm
Forum: Compiler / Linking / IDE Related
Topic: Linking errors with my project (build under mingw with g++)
Replies: 4
Views: 1777

I solved this problem by using precompilation flag WXUSINGDLL to build my application. Indeed, I found this into the wxwidgets source code: #if wxHAS_TEXT_WINDOW_STREAM int overflow(int i); #endif // wxHAS_TEXT_WINDOW_STREAM and this is defined at top level: #if defined(__WATCOMC__) || \ defined(__M...
by Muetdhiver
Thu Dec 31, 2009 5:52 pm
Forum: Compiler / Linking / IDE Related
Topic: Linking errors with my project (build under mingw with g++)
Replies: 4
Views: 1777

Hi !!! After several hours, i built a new time wxWidgets but with SHARED=1, UNICODE=1, and this time I obtain good libraries into wxWidgets2.8.9\lib\gcc_dll. My application compilation is OK. But the link just fails with ONE remaining error !!! An unresolved reference to `wxTextCtrlBase::overflow(in...
by Muetdhiver
Wed Dec 30, 2009 3:19 pm
Forum: Compiler / Linking / IDE Related
Topic: Linking errors with my project (build under mingw with g++)
Replies: 4
Views: 1777

Hi !!! I don't understand anything, with which libraries I need to link ??? Here is the content of \wxwidgets-2.8.9\lib : libwx_baseud-2.8.dll.a libwx_baseud_net-2.8.dll.a libwx_baseud_xml-2.8.dll.a libwx_mswud_adv-2.8.dll.a libwx_mswud_aui-2.8.dll.a libwx_mswud_core-2.8.dll.a libwx_mswud_html-2.8.d...
by Muetdhiver
Mon Dec 28, 2009 10:56 pm
Forum: Compiler / Linking / IDE Related
Topic: Linking errors with my project (build under mingw with g++)
Replies: 4
Views: 1777

Linking errors with my project (build under mingw with g++)

Hello, I built correctly my project under windows with MinGW but i've got a lots of error during the link. Here is the line i used to link: g++ -L"C:\Alex\wxWidgets-2.8.9\lib" -L"C:\Alex\MySQL5.1\lib\opt" -o"../Krablenet/krablenet-engine" -mthreads -Wl,--subsystem,windo...
by Muetdhiver
Mon Dec 28, 2009 7:11 pm
Forum: Compiler / Linking / IDE Related
Topic: Error building wxWidgets minimal sample under Eclipse CDT
Replies: 1
Views: 982

Error building wxWidgets minimal sample under Eclipse CDT

Hello !! My aim is to build my app into windows. Originally, I was using Ubuntu with Eclipse CDT. My reflex is to use Eclipse CDT with Mingw / Msys under windows, but a lots and a lots of problems appear !!! After 5 hours of tries, - I installed wxWidgets (I used 2.8.9 unicode debug for this purpose...
by Muetdhiver
Thu Oct 29, 2009 9:43 am
Forum: C++ Development
Topic: Splash screen problem
Replies: 3
Views: 1280

Sorry ! I see your answer very lately ! CProgressDialog is my own progress dialog, derived from wxProgressDialog, it contains a thread safe way to execute actions from my engine. It encapsulates a gauge than can be manipulated directly from the engine. Consider it is like a wxProgressDialog. Regards.
by Muetdhiver
Thu Oct 29, 2009 9:30 am
Forum: C++ Development
Topic: Trying to discover sudden exit error
Replies: 4
Views: 1004

More obviously, try printing your messages in a console (using standard flush() function), or in a better way, you can launch your program directly in debug mode, with gdb. GDB will tell you the location of the code that make it crash.

Good Luck
by Muetdhiver
Thu Sep 10, 2009 4:37 pm
Forum: C++ Development
Topic: How to get special directories on Windows (Desktop etc)
Replies: 9
Views: 2825

Here you go :)

When finished, post it to wxCode.

Regards.
by Muetdhiver
Thu Sep 10, 2009 1:04 pm
Forum: C++ Development
Topic: Drag and drop of wxTreeCtrl item out of the control
Replies: 4
Views: 1895

Hello ! You are right, wxTreeCtrl has its own drag and drop mechanism for moving elements in the tree. But for dragging elements out of the tree, it must use a more global dnd mechanism. Your wxTreeCtrl must be the source from dragging, and your destination widget must be able to receive your elemen...
by Muetdhiver
Thu Sep 10, 2009 8:23 am
Forum: C++ Development
Topic: Probs with wxString
Replies: 3
Views: 927

The problem of this forum is that only a little part of people understand the "Accept" tag principle... sorry for you catalin :)
by Muetdhiver
Thu Sep 10, 2009 8:20 am
Forum: C++ Development
Topic: first weekday?
Replies: 4
Views: 1362

Sorry.
Trying to help (even to give a hint or an approach of the problem), is always a bad idea...
The next time I will close my mouth and will never try to answer questions....

Sorry for existing...
Hope "wx World domination" has what he wants....

Good bye.
by Muetdhiver
Wed Sep 09, 2009 8:46 am
Forum: Compiler / Linking / IDE Related
Topic: [wxWidgets 2.8.10][MSW][Mingw] Unable to build wxWidgets...
Replies: 0
Views: 698

[wxWidgets 2.8.10][MSW][Mingw] Unable to build wxWidgets...

Hello, i'm facing a big problem since yesterday because I try to build wxWidgets for Windows, using Mingw. I'm using this command : n100836@XPSCPSRMS01 /e/Temp/n100836/wxWidgets/build-debug $ ../configure --with-msw --enable-debug --enable-debug_gdb --enable-unicode ... ... n100836@XPSCPSRMS01 /e/Te...
by Muetdhiver
Tue Sep 08, 2009 4:36 pm
Forum: C++ Development
Topic: first weekday?
Replies: 4
Views: 1362

Hello, hope it helps, i found this in cplusplus.com, but it is not related to wxWidgets. It is a plateforme undependent solution to get the day from the day (in number), the month and the year. C++ standard implies that the first day of the week is always Sunday.... /* mktime example: weekday calcul...
by Muetdhiver
Mon Sep 07, 2009 12:37 pm
Forum: C++ Development
Topic: How to clean / close allocated wx objects in wxWidgets
Replies: 2
Views: 1253

Hi Webmail, you'd better read this: http://docs.wxwidgets.org/trunk/page_multiplatform.html#page_multiplatform_allocatingobjects In general, classes derived from wxWindow must dynamically allocated with new and deleted with delete. If you delete a window, all of its children and descendants will be ...