| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<binrapt> And if I interpreted all lines using Unicode your normal English ASCII stuff would be broken, too, eh <Genia4> no <Genia4> utf8 doesn't break ascii <james-_> binrapt: UTF8 is an extension of ASCII. <Genia4> english utf8 = ascii <Genia4> if the language represented is not english though, then it will break <Genia4> ucs32 is probably the most useless thing ever <binrapt> Ah, I think I saw some guys use it in a channel and everybody complained about it <Genia4> 4 bytes for one letter <Genia4> letter, peh <Genia4> glyph <Madsy_> mauke: mauke: unicode doesn't fit into two bytes? Then why does all the wide char cl***es use wchar_t as traits and datatype? :) <Genia4> wchar_t is 2 bytes on windows, 4 on linux <james-_> Madsy: wchar_t is 4 bytes on most sane systems. <binrapt> Genia4: Lawl <Genia4> 4 is a ****ing overkill <Madsy_> Okay, my bad and I apoligize. <Genia4> utf16 is good enough for anything <james-_> Windows is an exception. And 1-byte wchar_t implementations do exist. <james-_> UTF16 is a lame compromise... not fixed-width, not compact either. <mauke> Madsy_: because wchar_t isn't unicode <Genia4> james-_: imo it's the best ratio between size and useability <Genia4> 4 bytes is just too much <Genia4> usability* <Genia4> utf8 is cool too in many cases <james-_> Genia4: I use either UTF8 or straight UCS4 when I have the choice. <mauke> UTF-16 is useless <james-_> UTF-16 when I'm confined to Windows or Java. <Genia4> mauke: explain <Genia4> they should invent utf24 <Genia4> :) <binrapt> Why are foreign languages tolerated anyway <Genia4> unicode is a bit ****ed up anyway <binrapt> Everybody should speak English <Genia4> too many duplicates <james-_> Unicode is the worst possible choice except all the others? <xab-of-da> foreign? english is foreign! <Genia4> james-_: eh? <mauke> UTF-16 combines the disadvantages of UTF-8 (variable-length encoding, no O(1) indexing) with those of UTF-32 (wasted space in the common case of english text) <GraviSrvr> well... english is the american language <james-_> Genia4: a misquote from the one about democracy. <GraviSrvr> i mean... we have more people than england :) <Yuhjn> Gravi: not if you subtract the spanish speaking americans :) <Genia4> mauke: so how come nobody has come up with something that combines the advantages yet? <GraviSrvr> Yuhjn: nein <jamesd-> Genia4: they're conflicting goals... compactness against uniform size. <Genia4> yeah, you're right <Genia4> guys <Genia4> do you know what tvorog is? <NKD> A big scary demon thing? <Genia4> sort of russian cheese, close <Genia4> I can't decide wether it qualifies as cottage cheese or not <Genia4> totally different taste, similar texture <Dafred> smegma? <Genia4> huh? <Yippy> I know this lies a little outside the scope of this channel, but what would be the best way to quickly code a GUI in C++. Can i code an interface in VB.NET, and link it to C++ code? <Genia4> I know it's possible to call c++ stuff from within vb code <jamesd-> Yippy: you can certainly do that, using Managed C++ or C++/CLI. <Yippy> thx <Yippy> jamesd: What would you recommend I learn for job prospects. (i.e. What do you think most companies would be looking for with respect to gui programming?) <Cyrix_> calc thx <kawfee> Cyrix_: hihihihi <Cyrix_> pcalc thx <Cyrix_> hio <Kniht> thx = I'm glad our help was so useful to you that you bothered to write out "thanks" without using an abbreviation <Yippy> Is using .NET with C++/CLI Better than C#? <kawfee> hio hio <kawfee> pcalc thx <kawfee> Kniht: speak up <Cyrix_> gee <Cyrix_> I demand on behalf of the American people that we understand why these investigations aren't being conducted," Democratic leader Harry Reid said <jamesd-> Yippy: beats me, GUI programming isn't a big interest of mine. Lots of tools are in use; scripting languages combined with Tk seem to be getting more popular, or variations thereon. <Cyrix_> the democrats are pretending they have a bakcbone <Cyrix_> the democrats remind me of hte UN <kawfee> democrats are teh sux <Yippy> Americans try and seperate their politics into two camps... As if there were no middle ground on issues <Cyrix_> ITS EITHER BLACK OR WHITE <jamesd-> Polarisation in US politics proves beyond reasonable doubt that people are not deciding their views on issues on the merits. <Yuhjn> the entire US system is, and has been, moving right for decades <Yuhjn> which basically makes rich people much richer and poor people much poorer <Cyrix_> there will be a church in every school! <NKD> the biggest problem with the political system <Yuhjn> unrestrcted capitalism <NKD> is parties <NKD> parties are BAD <Cyrix_> controlling both house and senate are bad <Cyrix_> thats why people aren't asking those questions earlier <Cyrix_> I demand on behalf of the American people that we understand why these investigations aren't being conducted," Democratic leader Harry Reid said <Cyrix_> about the iraq war blah blah <Cyrix_> i want to find those with bush/cheney 2000 stickers still <Cyrix_> and put with a labeler (dead and countin) <Cyrix_> huhu <_nx> hmmm. I wonder if anyone can explain why the std::copy_backwards algorithm is marked unsafe in msvc 2k5? <_nx> I can see that mistakes are easy with std::copy, but std::copy_backwards makes it easier to be correct. <_nx> Cyrix_, how about you, any idea? <Cyrix_> noto ffhand ive never really looked at them <Cyrix_> who uses the silly standard library anyway <jamesd-> copy_backwards?! Never used it. <jamesd-> Didn't know there was one... <_nx> jamesd-, it's for copying to the right with overlapped ranges <jamesd-> My copy of the working paper doesn't include such a thing, or the Reader search doesn't find it. <_nx> odd <_nx> sorry, copy_backward() <_nx> (no s) <Soronel> jamesd: msdn has it <Soronel> (without the s of course) <_nx> what's worse is that the warning error description says that I need to view the documentation about the "Safe Standard C++ Library" -- a term which doesn't exist in MSDN. <jamesd-> copy_backward, yes... the arguments the same as copy, so it's "unsafe" in the same situations, i.e., you don't give it enough space to write to. <jamesd-> nx: people are working on getting that language changed. <_nx> yeah, however, in practice, if you're copying from an array to further right the same array, and one parameter is the end of the array, it's going to be difficult to mess up. <_nx> or at least easy not to mess up <_nx> anyone know what the suggested alternative is? <_nx> the "safe" one <khaladan> _nx, ms did all kinds of stupid secure stuff to the c++ standard lib in the latest release, threw it in stdext <l2u> can you do bool a = 0; instead of false? <l2u> and 1 instead of true? <khaladan> _nx, see checked_* for some algos. like checked_copy_backwards. and unchecked_* as well. <Cyrix_> pcalc try <Kniht> try = When in doubt, try it out! <khaladan> or, just ignore the warning! <GenNMX> l2u: True is 1, and false is not 1. So 1 and 0 work. <Cyrix_> maybe is -1 <GenNMX> Cyrix is thinking fuzzy today ;) <NKD> what about "kinda" <NKD> snt that sqrt(-1) <NKD> isnt* <l2u> i have a question.. i got a source of an open source program.. and the programming style is quite different from mine.. do you guys usually try to program in your style when modding other programs or you try to use this program's style? <Soronel> dang, watching a pumpkin chuck <Soronel> and this team just tossed one almost 1300 feet <Cyrix_> im sure that people in africa appreciate those events <Soronel> screw em <Soronel> at least these people aren't bombing each other <Cyrix_> they war with eachother and have rich supersitions because they dont know any better! <Cyrix_> we have ot protect their governments <Soronel> heh <Mister_X> gn all <Fogg> how could one properly convert a std::string to a char* ? <mauke> no <redec> c_str <Fogg> I've recalled, thanks redec <Cyrix_> what kind of voodoo **** is this <Cyrix_> http://www.lovechandigarh.com/forum/showthread.php?t=1657\ <mauke> that doesn't give you a char *, though <mauke> and it doesn't convert anything <kawfee> Anyone here user RPC? <kawfee> What is a good source for RPC for sun? <jamesd-> l2u: it's usually best to fit in with the existing style, unless it is utterly dire. <NKD> cyrix thats not voodoo thats a hindu site <Cyrix_> those treehugger hinuds . what are they doing playing around with money <NKD> lol <GraviSrvr> so... im writing a gtk app... and i p*** "SubWindow *subwindows[2];" in the form of "subwindow" which is recieved as "SubWindow **subwindow" however, once recieving function gets the pointer, my debugger shows the pointer points to address 0x2
Return to c++ or Go to some related
logs:
chatzone
|
|