Search found 14294 matches

by doublemax
Tue Jul 18, 2006 6:09 pm
Forum: C++ Development
Topic: to native code
Replies: 6
Views: 935

if you want small exe-size, use PureBasic, size of a minimal Windows application is about 10k - and it's cross platform.
by doublemax
Tue Jul 18, 2006 6:05 pm
Forum: C++ Development
Topic: wxFileName problem with volume name
Replies: 5
Views: 898

No comments? Only comment i can make is: What you're describing seems pretty academic to me, what exactly are you trying to do? A few things you mentioned may be considered bugs (although i didn't look deeper into them), but then again i think you're using this class in a way it wasn't intended to ...
by doublemax
Tue Jul 18, 2006 5:51 pm
Forum: C++ Development
Topic: Really confused about destroying sizers
Replies: 4
Views: 832

Marcosm64 wrote:doublemaxx, by parent do you mean the window it manages?
yes
by doublemax
Tue Jul 18, 2006 5:06 pm
Forum: C++ Development
Topic: wxMediaCtrl crashes. Something wrong with code or my config?
Replies: 2
Views: 713

try changing your Connect() call to this:

Code: Select all

playButton.Connect(wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(MainFrame::PlayEvent), NULL, this);
by doublemax
Tue Jul 18, 2006 4:18 pm
Forum: C++ Development
Topic: TabControl
Replies: 5
Views: 826

i think you are looking for wxNoteBook
by doublemax
Tue Jul 18, 2006 10:23 am
Forum: C++ Development
Topic: Linked List using wxList
Replies: 1
Views: 464

Why do you want to search for a string in a list, when there's no other information linked to that string? Is it only to check whether a string is present in the list or not? In that case, you could use wxArrayString. If there can be very many strings in the list and performance is an issue, use a w...
by doublemax
Tue Jul 18, 2006 10:21 am
Forum: C++ Development
Topic: Display of printf in WxWidgets application
Replies: 1
Views: 481

if you're working on Windows, i'd recommend using wxLogDebug() together with DebugView
by doublemax
Tue Jul 18, 2006 8:51 am
Forum: C++ Development
Topic: Edit Trees & Dialogs
Replies: 6
Views: 704

How can I tell the two cases apart? Either the Cancel-Event is generated by pressing Esc or by pressing the cancle button. hmm, i didn't think about that, silly me. If you could live with a dialog that does not close automatically when pressing ESC (i.e. one that can only be cancelled by clicking o...
by doublemax
Tue Jul 18, 2006 8:01 am
Forum: C++ Development
Topic: wxPageSetupDialog not returning default paper size
Replies: 2
Views: 489

where is the code that you use to check the paper size? The wxPageSetupDialogData* that you pass to the wxPageSetupDialog ctor is *not* updated. You explicitly need to call wxPageSetupDialog::GetPageSetupData() and use that data. if( pageSetupDialog.ShowModal()==wxID_OK ) { wxSize papersize=myPageSe...
by doublemax
Tue Jul 18, 2006 6:07 am
Forum: C++ Development
Topic: Really confused about destroying sizers
Replies: 4
Views: 832

under most circumstances you never have to delete a sizer yourself. It's done automatically when its parent gets destroyed.
by doublemax
Mon Jul 17, 2006 9:13 pm
Forum: C++ Development
Topic: wxString performance statistics
Replies: 5
Views: 991

if you link statically, maybe you can set a breakpoint in the statistics destructor to check if it's actually called.

if you link dynamically, make sure you built and replaced the correct versions of the library
by doublemax
Mon Jul 17, 2006 7:31 pm
Forum: C++ Development
Topic: wxString performance statistics
Replies: 5
Views: 991

Are you developing on Windows? Then where exactly do you expect these statistics to appear?
The stats are output to stderr, you probably have to open a console window and redirect the output of your application to a file to read them.
by doublemax
Mon Jul 17, 2006 7:02 pm
Forum: C++ Development
Topic: wxRegex
Replies: 10
Views: 1566

Game_Ender wrote:Thanks, but besides that is my logic sound? does "number.GetMatch(newNum,0)" return the entire string if the entire string matched?
Yes, that's what i'd expect. But with regular expressions you never know ;)
by doublemax
Mon Jul 17, 2006 6:19 pm
Forum: C++ Development
Topic: wxRegex
Replies: 10
Views: 1566

'a' and 'b' are alphanumeric, you should use :digit: instead of :alnum:
But for this simple check a wxString::IsNumber() might work, too.
by doublemax
Mon Jul 17, 2006 4:31 pm
Forum: C++ Development
Topic: Load bitmap from memory
Replies: 22
Views: 3914

i think this particular wxBitmap::Create() method expects raw pixel data, but not a raw image stream with headers etc. You can try loading your bitmap with wxMemoryInputStream and wxImage (which supports loading from input streams, wxBitmap does not) wxMemoryInputStream s(resource->getBuffer(), reso...