Search found 387 matches

by Widgets
Sat Nov 08, 2008 9:47 pm
Forum: C++ Development
Topic: wxHashMap clean-up question
Replies: 10
Views: 1852

As I mentioned, if I comment out the second line MyHash.erase(), then I avoid both the crashing and any memory leaks - I'm happy with that :-)
by Widgets
Sat Nov 08, 2008 7:08 pm
Forum: C++ Development
Topic: wxHashMap clean-up question
Replies: 10
Views: 1852

Thank you for you reply. I have tried your for loop suggestion and it works - the first time around the loop - as do the other options I have tried, beside the macro. But, on the second time around, I get an unhandled exception: access violation reading location 0xfeeefef6 :-( As for letting the OS ...
by Widgets
Sat Nov 08, 2008 3:49 am
Forum: C++ Development
Topic: wxHashMap clean-up question
Replies: 10
Views: 1852

wxHashMap clean-up question

I'm using a wxHashMap in my program and everything works well enough, except I get memory leaks because I am not cleaning out the hash properly when the program exits. All my attempts to clean out the hash and release the memory prior to exit have led to nothing but crashes on exiting. In my header ...
by Widgets
Thu Nov 06, 2008 5:48 pm
Forum: C++ Development
Topic: wxHtmlHelpController question
Replies: 2
Views: 709

Thank you very much, T-Rex I have done a preliminary translation of your tutorials - google choked on translating the whole page - in fact it only translated the peripheral text and not the core :-) - but by copying and pasting text a paragraph at a time, I was able to sort of get a reasonable trans...
by Widgets
Thu Nov 06, 2008 4:07 am
Forum: C++ Development
Topic: wxHtmlHelpController question
Replies: 2
Views: 709

wxHtmlHelpController question

Now that I am finally getting down to try and add help to one of my apps as a test case, I've run into some snags. After reading all I could find, I tried MS's HTML Help Workshop - I'm using 4.74.8702.0. After a lot of fiddling and more trial and error, I built a couple of simple html files and then...
by Widgets
Wed Oct 08, 2008 4:18 pm
Forum: C++ Development
Topic: Another regex question
Replies: 2
Views: 791

I tried your code with your example input and it found matches and printed "Munged line 17". Make sure that your code actually enters your function and uses the correct source for input. EDIT: NM, I just read over your post and realized that your problem is that you can't find the first occurrence....
by Widgets
Wed Oct 08, 2008 2:58 am
Forum: C++ Development
Topic: Another regex question
Replies: 2
Views: 791

Another regex question

After looking through the various answers in this forum regarding the use of wxRegEx, I'm still stuck. I have a subroutine intended to find lines which contain "Received from: .... for " in e-mail header lines. in sample text From - Tue Oct 07 12:09:18 2008 X-Account-Key: account5 X-UIDL: <000301c92...
by Widgets
Thu Oct 02, 2008 8:36 pm
Forum: C++ Development
Topic: Setting font for printing
Replies: 0
Views: 231

Setting font for printing

I've been playing again with my printing utility but have run into a problem/question I thought I had solved. I'm quite sure when I last worked on it, I did not have the problem, except, now when I run some of the older versions, they all end up printing with something other than Courier. The Proble...
by Widgets
Wed Oct 01, 2008 7:16 pm
Forum: C++ Development
Topic: wxFileConfig or wxConfigBae
Replies: 4
Views: 1313

I've just recently been working on some aspects of the INI files under Windows since I don't like monkeying with the registry. I finally think I understand how to use the hierarchical structure and for my tests I have modified the existing config example somewhat ;-) I'll try to attach a zip file wi...
by Widgets
Sat Jul 19, 2008 12:00 am
Forum: C++ Development
Topic: Saving & restoring the internal layout of splitter windo
Replies: 2
Views: 582

Thank you David. After posting my question I read the thread I referred to with your answer again a couple more times and more carefully and realized that what I tried did not quite correspond to what you had recommended. At the same time I could not quite figure out just what I would need to do. Th...
by Widgets
Fri Jul 18, 2008 7:42 pm
Forum: C++ Development
Topic: Saving & restoring the internal layout of splitter windo
Replies: 2
Views: 582

Saving & restoring the internal layout of splitter windo

I'm trying to save and restore the internal layout of a frame with a couple of splitter windows so that the arrangement the user selects can be restored the next time the application is run. I'm using the wxConfig code to write to a .INI file and it works well enough. I can save and restore the over...
by Widgets
Mon Jul 14, 2008 8:39 pm
Forum: C++ Development
Topic: Painting wxtextCtrl background
Replies: 4
Views: 872

[quote="chris_bern"]I think you are looking for wxRichTextCtrl I have looked at that control, but I think it would be overkill and besides, it does not really change my problem. If I add background colors during the addition of the text, then I'm going to have to modify every line after the one modi...
by Widgets
Mon Jul 14, 2008 8:34 pm
Forum: C++ Development
Topic: Painting wxtextCtrl background
Replies: 4
Views: 872

Hi! Try the wxListCtrl. There you can change the color of each line (Item): http://wiki.wxwidgets.org/WxListCtrl#Using_Specific_Colours_for_Each_Item It's not so much that I can't change or don't know how to change the background color of a line when I add it. I think I need to do it from the erase...
by Widgets
Sat Jul 12, 2008 8:11 pm
Forum: C++ Development
Topic: Painting wxtextCtrl background
Replies: 4
Views: 872

Painting wxtextCtrl background

In a multi-line wxTextCtrl window, I would like to be able to paint the background of alternating lines a different color. I can do this easily enough when I first fill the control, but I do have to allow for adding and deleting of lines. So if I paint the background when I add the text, things get ...
by Widgets
Mon Jun 30, 2008 10:18 pm
Forum: C++ Development
Topic: Changing the button labels on wxMessageDialog
Replies: 3
Views: 601

Thank you both, I think I'll stick with Jim's suggestion. In my rush to get the question asked, I failed to mention that I actually had tried to build my own - using wxFormBuilder, but ran into much the same problems with the available options with that program ( my problem seemed to be to find the ...