News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Categories and file types defined lost on C::B restart

Started by MortenMacFly, December 18, 2005, 06:09:43 PM

Previous topic - Next topic

280Z28

msg.Printf() for set

msg << wxString::Format() for append work great, why not just stick with them and leave it?
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
Check out The Sam Zone :cool:

Michael

Quote from: thomas on December 21, 2005, 11:06:39 PM
Quote from: Michael on December 21, 2005, 10:57:42 PMHow about wxMBConv classes?
Does not avail. Converts two-byte to variable length and vice versa. I tried, too, it only messes up the string completely.

Thank you for your reply. That's not a very good new. I have seen this example and had the idea that it could may be work.

Quote
Example 5: Printing a wxString to stdout in custom encoding. Using preconstructed wxCSConv instance.

wxCSConv cust(user_encoding);
printf("Data: %s\n", (const char*) str.mb_str(cust));

Note: Since mb_str() returns a temporary wxCharBuffer to hold the result of the conversion, you need to explicitly cast it to const char* if you use it in a vararg context (like with printf).

Anyway, I find strange that it does not work :?. May be a bug in wxWidgets?

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]