Author Topic: Categories and file types defined lost on C::B restart  (Read 15268 times)

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: Categories and file types defined lost on C::B restart
« Reply #15 on: December 21, 2005, 11:14:07 pm »
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:

Offline Michael

  • Lives here!
  • ****
  • Posts: 1608
Re: Categories and file types defined lost on C::B restart
« Reply #16 on: December 21, 2005, 11:23:20 pm »
How 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.
Code
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