Search found 387 matches

by Widgets
Fri Dec 04, 2009 1:26 am
Forum: C++ Development
Topic: Anyone using boost.test with wxWdigets GUI
Replies: 0
Views: 383

Anyone using boost.test with wxWdigets GUI

I'm currently trying to evaluate some unit test setup to test some wxWidgets app plugins - which live in wxWidgets DLLs linked dynamically to the wxWidgets libs. Is anyone using the boost.test UTF with any kind of wxWidgets GUI front end or can anyone point me to something useful. My main reason for...
by Widgets
Wed Nov 04, 2009 6:04 pm
Forum: C++ Development
Topic: String encoding identification/conversion
Replies: 5
Views: 919

I understand your problem. But if you don't get the information how a string is coded you are actually lost. You could check if a string conforms the UTF-8 encoding - UTF-8 has not allowed byte sequences. And ISO-8859 some unlikely bytes. So an automatic detection could only work with a probability...
by Widgets
Tue Nov 03, 2009 7:35 pm
Forum: C++ Development
Topic: String encoding identification/conversion
Replies: 5
Views: 919

[quote="kai7"]Hm, maybe I didn't understand you correctly. But if you get an Latin-1 or ISO 8859-1 coded string, you should convert from there. With your code wxWidgets is expecting an UTF-8 string. Try this: #define cs2ws(s) (wxString(s,wxConvISO8859_1)) wsText = cs2ws( gcBuf ); I will try your sug...
by Widgets
Mon Nov 02, 2009 8:26 pm
Forum: C++ Development
Topic: String encoding identification/conversion
Replies: 5
Views: 919

String encoding identification/conversion

In trying to parse output from WhoIs servers I have run into a problem where occasionally a server will return a string which is not clean plain ASCII. Currently I convert from ASCII to wxString in a Unicode build using #define cs2ws(s) (wxString(s,wxConvUTF8)) (wxString) wsText = cs2ws( gcBuf ); wi...
by Widgets
Fri Oct 30, 2009 10:46 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSR SPAM Reporter
Replies: 0
Views: 773

ANN: wxSR SPAM Reporter

I've just uploaded the latest version of wxSR to
http://www.columbinehoney.net/wxSR.shtml

wxSR is intended to make it much quicker and easier to report SPAM to the appropriate authorities.

A handful of keystrokes and mouse clicks gets it all done in a jiffy.

Feedback is welcome.
by Widgets
Fri Aug 07, 2009 5:19 pm
Forum: C++ Development
Topic: Saving multiple wxFileHistory objects to INI file
Replies: 2
Views: 560

doublemax wrote:call wxConfigBase::SetPath() with different paths on the wxConfig object before calling wxFileHistory::Save()

Very simple and easy - Thank you very much :D
by Widgets
Thu Aug 06, 2009 11:07 pm
Forum: C++ Development
Topic: Saving multiple wxFileHistory objects to INI file
Replies: 2
Views: 560

Saving multiple wxFileHistory objects to INI file

In one of my current projects I would like to add two MRU file lists to the menu. All works well enough using wxFileHistory, except I don't see any way to save to different lists to my INI file. Am I missing something or is this 'by design' The documentation does mention multiple histories, but if o...
by Widgets
Thu Feb 19, 2009 6:40 pm
Forum: C++ Development
Topic: parsing a Unicode string
Replies: 2
Views: 577

Thank you for replying, I appreciate it. I'm converting an ANSI version of an application to Unicode and need to replace strcspn() to break a line at either a space or a tab. At present I am looking at converting any tabs to spaces and then searching the line for spaces only. For the present, this w...
by Widgets
Thu Feb 19, 2009 1:16 am
Forum: C++ Development
Topic: parsing a Unicode string
Replies: 2
Views: 577

parsing a Unicode string

Is using wxStringTokenizer the only or the best way to break up a Unicode string into white space separated tokens? I have tried find_first_of() but had no success with it and have not been able to find much on the topic on this forum. One alternative I have considered is to use native Windows API f...
by Widgets
Wed Jan 14, 2009 1:37 am
Forum: Announcements and Discoveries
Topic: ANN: wxSR SPAM reporter utility
Replies: 0
Views: 778

ANN: wxSR SPAM reporter utility

If you get a lot of SPAM and want to do something about it - rather than just deleting it - this utility is intended make it as easy as possible for you to report SPAM to the appropriate address and hopefully put one more SPAMbot out of business. Using it (and its precursors over the past 2-3 years ...
by Widgets
Fri Dec 19, 2008 8:53 pm
Forum: C++ Development
Topic: Accelerator key underline delay
Replies: 2
Views: 666

Thank you, doublemax.

This is a setting I had never even imagined to exist ;-)
But it solved my problem.
by Widgets
Fri Dec 19, 2008 4:05 am
Forum: C++ Development
Topic: Accelerator key underline delay
Replies: 2
Views: 666

Accelerator key underline delay

The application I am working on has a number of buttons which I want to be able to also activate using accelerator keys. All works well enough; I've managed to underline the appropriate character in the button label, but I've noticed that the underline in all on these buttons does _not_ appear until...
by Widgets
Tue Nov 11, 2008 6:56 pm
Forum: C++ Development
Topic: wxHashMap clean-up question
Replies: 10
Views: 1852

I do need to find a good way of detecting memory leaks on compilers other than MSVC, but that is another project somewhere down the road.

as for the solution to clearing the hash, if I get a chance, I might try your version, but most likely, that will be put off for a bit ;-)
by Widgets
Mon Nov 10, 2008 3:25 am
Forum: C++ Development
Topic: wxHashMap clean-up question
Replies: 10
Views: 1852

If you're using MS Visual Studio - which is what I use for this purpose - see:

http://msdn.microsoft.com/en-us/library ... S.80).aspx
by Widgets
Sat Nov 08, 2008 11:54 pm
Forum: C++ Development
Topic: wxHashMap clean-up question
Replies: 10
Views: 1852

Yeah, I had looked at both and tried to implement them, but without much luck. ;-) Since I am done with the hashmap as it is, I'm OK with this solution, but if you do resolve the puzzle one way or the other, I know I'd be interested in understanding this issue better. ================ After a bit mo...