Search found 150 matches

by chris
Tue Dec 20, 2005 9:59 pm
Forum: C++ Development
Topic: Illegal byte sequence's error on strings in Unicode
Replies: 2
Views: 2220

Hi ioio, When gcc is parsing your source code it does so assuming a certain charset for the string and character constants in the source code. In the current charset used by gcc ( I think it is UTF-8 ) it expects the special characters to be in Unicode, but your chars are in another charset (probabl...
by chris
Tue Dec 13, 2005 2:33 pm
Forum: C++ Development
Topic: Conversion to UTF8 multibyte
Replies: 4
Views: 2127

Thanks for your reply jb_coder. Once I figured out I'm working on a temporary buffer it was clear how to continue from there. A shame that I missed that passage from the docs, thought I read them carefully for sure :wink: I'll give you the Accepted Answer points because leio already sits on a load o...
by chris
Tue Dec 13, 2005 10:35 am
Forum: C++ Development
Topic: Conversion to UTF8 multibyte
Replies: 4
Views: 2127

Hi leio, Thanks for your reply. This is essentially what I was doing (though without the explict call to c_str()), but unfortunately still doesn't work when used as a function. Using the macros you posted everything is fine. The problem seems to be that a wxCharBuffer is returned by wxConvUTF8. That...
by chris
Sun Dec 11, 2005 1:16 pm
Forum: C++ Development
Topic: Conversion to UTF8 multibyte
Replies: 4
Views: 2127

Conversion to UTF8 multibyte

Hi all, I need to convert a wxString to UTF8 multibyte regardless the input encoding/the way wx was compiled (Unicode or ANSI mode) and vice versa. Having tried several things that all failed I really need someone holding my hand with this. :wink: The last try looks like this: const char * wxStringT...
by chris
Sun Dec 04, 2005 5:03 pm
Forum: Platform Related Issues
Topic: Centering a wxGrid on a wxFlexGridSizer
Replies: 0
Views: 602

Centering a wxGrid on a wxFlexGridSizer

Hi all, I'm not sure if this belongs to "platform related", but I experience different behaviour on Windows and Linux, therefore I'll post this here. I've got some troubles with centering a wxGrid in a wxFlexGridSizer. The code fragment below successfully centers the grid with wxGTK 2.6.2,...
by chris
Wed Nov 30, 2005 11:03 pm
Forum: Compiler / Linking / IDE Related
Topic: gcc 4.2 Installation Help
Replies: 18
Views: 3276

:wink: Of course, but then this thread goes the way of all "what distribution is teh (sic) best" threads on the internet: 45 post from $DISTRIBUTION-fanboys consisting of nothing more than name calling and lots of bad arguments for or against a particular Linux. Then suddenly all of those ...
by chris
Wed Nov 30, 2005 5:52 pm
Forum: Compiler / Linking / IDE Related
Topic: gcc 4.2 Installation Help
Replies: 18
Views: 3276

If you are really that keen on being 'bleeding edge' with your software versions, you may want to try a different distribution like Debian Unstable . Be warned, though. Debian Unstable might be, well, unstable. Debian uses Apt as package manager, by the way. Upgrading consist of not more than a simp...
by chris
Wed Nov 23, 2005 11:37 am
Forum: C++ Development
Topic: msgfmt not able to handle CR??
Replies: 2
Views: 918

Re: msgfmt not able to handle CR??

Hi,
sdp wrote: STRTABLE{
/* FIRST_STRING*/ _("display this is line 1.\n\n\
display this in line2")
}
Did you try write that in a single line like
STRTABLE{
/* FIRST_STRING*/ _("display this is line 1.\n\ndisplay this in line2")
}
?

Chris
by chris
Tue Nov 22, 2005 10:06 am
Forum: Compiler / Linking / IDE Related
Topic: How to make executable for WinXP?
Replies: 14
Views: 2696

Hi, this seems to be triggered by a corrupted Manifest file. It's not very clear how this can happen, so I'm afraid I can be of any specific help here. You may want to try generating a new Manifest and hope the error goes away then. HTH, Chris P.S.: See http://msdn.microsoft.com/library/default.asp?...
by chris
Thu Nov 17, 2005 10:45 pm
Forum: C++ Development
Topic: wxMessageBox and unwanted icons -- bug?
Replies: 3
Views: 1890

Hi Craig,

I did not test your problems myself, but I did notice you try to pass wxID_OK as a style flag. I think you mixed this up with wxOK, which is the proper style flag to use.

Hope this helps a bit,

Chris
by chris
Tue Nov 08, 2005 10:09 am
Forum: Platform Related Issues
Topic: wxTextCtrl unexpected scoll
Replies: 4
Views: 1496

Hi,

that bug has been reported for nearly three years:

http://sourceforge.net/tracker/index.ph ... tid=109863.

I've been running into this, too. The suggested ScrollLines(-1) workaround doesn't work for me neither.

Chris
by chris
Fri Nov 04, 2005 2:29 pm
Forum: C++ Development
Topic: destruction of sub-class
Replies: 4
Views: 1879

Hi, Yes, you should, but that hasn't anything to do with derivation. In C++, all objects created via "new" must be explicitly deleted via "delete". wxWidgets takes some of that workload off you in some cases. One of those cases is a control (like a wxButton) that has been attache...
by chris
Fri Nov 04, 2005 1:55 pm
Forum: C++ Development
Topic: Problems executing an application on win32 compiled unicode
Replies: 7
Views: 5095

Hi, the above example runs fine with wxMSW 2.6.2 (Unicode) and Visual C++ 7.1. I'm using Unicode in some projects (on Windows and Linux) and never experienced problems related to Unicode. I don't have an Unicode enabled wx for MinGW ready (and am too lazy to build one), sorry. A few thoughts: Projec...
by chris
Tue Nov 01, 2005 9:44 pm
Forum: C++ Development
Topic: f12-Bug in wxWidgets?
Replies: 12
Views: 4228

Ah well, "Benutzerhaltepunkt" in the screenshot (first post) means "user breakpoint". So it seems that's actually a feature of Visual Studio.
Scott is right on this one for sure.

Chris
by chris
Tue Nov 01, 2005 6:35 pm
Forum: C++ Development
Topic: f12-Bug in wxWidgets?
Replies: 12
Views: 4228

Hi,

I can't reproduce this (using the minimal sample you provided), neither with MinGW 3.4.2 and wxMSW 2.6.1 (ANSI) nor Visual C++ 7.1 and wxMSW 2.6.2 (ANSI).

What's your wx version, how did you compile it (release/debug, ANSI/Unicode, DLL or static libs)?

What does your Makefile look like?

Chris