Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Categories and file types defined lost on C::B restart
280Z28:
NOOOOOOOOOOOOOOOOOOOO Printf is what works!! << is what does NOT work (FOR INTEGERS)!!
:shock: :lol: :D
rickg22:
why not just use an int2s function and forget about which part doesn't work?
280Z28:
--- Quote from: rickg22 on December 21, 2005, 10:25:53 pm ---why not just use an int2s function and forget about which part doesn't work?
--- End quote ---
Probably the reason I didn't use an int2s() function is I didn't think about it.
However, looking back on it, take a look at this line in filegroupsandmasks.cpp:75
Both of these ways should work in the Unicode version. One fixes the problem with int2s() and one with Printf(). I greatly prefer the Printf() in this case because it is immediately obvious exactly the type of string you are creating. The longer one with int2s() requires you to "build" it in your head so to speak.
--- Code: ---key << _("/file_groups/group") << int2s(i) << _T("/") << _T("name");
key.Printf(_T("/file_groups/group%d/name"), i);
--- End code ---
Michael:
Hello,
How about wxMBConv classes?
I am not sure, but I think they could be used, or?
Michael
thomas:
--- Quote from: Michael on December 21, 2005, 10:57:42 pm ---How about wxMBConv classes?
--- End quote ---
Does not avail. Converts two-byte to variable length and vice versa. I tried, too, it only messes up the string completely.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version