@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9



Comments:

<0> decompiling is tricky
<0> query Solamente
<0> aargh
<1> Yes, query me.
<2> anyone knows whats that:
<2> c:\customlistboxtest\customlistbox.h(8) : warning C4183: 'BEGIN_MSG_MAP_EX': member function definition looks like a ctor, but name does not match enclosing cl***
<1> cl*** Foo { Bar() {} }; // This will cause that error
<2> whats the problem in there?
<3> uh, return type?
<3> only constructors don't have one
<2> oh kk
<4> dont use semicolon on the end of a bracket
<4> :/
<3> (which is why it 'looks like a ctor')
<3> richardnix0n - what?



<3> struct Foo{};
<2> and btw, wtf is a ctor?
<4> constructor
<3> RoG - ctor = constructor
<2> oh kk
<4> and dtor
<3> richardnix0n - it's required at the end of a struct/cl*** definition
<2> nice memory saving..
<4> is it?
<3> richardnix0n - Yes
<2> it is yeah
<4> i code mostly c# these days anyway :D
<4> guess you need the semicolon then :O
<0> richardnix0n unless the semicolon is after a struct/cl*** definition
<0> it's kinda mandatory
<4> so -> int g () { return 5; } <- this wont work?
<0> why not
<3> ...huh ? of course it will 'work'
<0> that looks like a function definition
<4> yes then dont use semicolon on the end of a bracket
<3> richardnix0n apparently you didn't read what we said
<0> struct widget{int x;} won't work
<4> ahhh
<0> apparently you didn't read what I wrote
<4> structs need semicolon on the end, yea?
<0> that's what I said above
<4> i dont read much these days either .,.. just type
<0> cl*** ditto (but you _know_ they're really the same as a struct, right?)
<4> i read it the other way around
<4> sorry
<4> i know
<4> same in c# and java and most other oops
<5> struct/cl***/enum/union
<4> i did it again
<4> but why not functions then? seems logical to me..
<6> struct myStruct { int aMember;} anInstanceThatIsDeclaredHere;
<6> That's why there's a semi-colon there. You can't isntantiate a function, so no semi-colon after those.
<1> C# has no such declaration form, so no need for the semicolon.
<4> how great is that?
<1> I don't particularly like C#, so I'm not the person to ask.
<4> i was retorical
<1> I thought squirrels hibernated
<7> http://anatolix.naumen.ru/Books/CPlusPlus <-- download pdf version of the most buyed c++ books ;)
<0> you'd think that thieves would learn
<8> downloading one now
<8> i want to see if it contains malicious code
<0> which one?
<0> a book?
<8> effective stl
<8> yeah, they're in archives
<0> ****, that's been ripped?
<1> If it's .ru, you'll need a condom.
<8> nope, just pdfs
<8> no trojans =(
<8> *delete*
<0> it's a shame my country calls taking that site offline "terrorism" or it would be ****ing toast
<0> stupid ***holes (the gov and the site)
<1> "Offshore terrorist cell"
<1> They could handle the site.



<0> they know how I feel about them...well it's not them that decided it
<9> what good is a pdf version anyway
<6> cynic_X_ Good enough for a read.
<9> it doesn't look good on a shelf, you can't value it, it looks like **** when you print it. And nobody ever finishes an illegal ebook.
<6> But eh. Who needs e-books. I gor ead them at the public library. =P
<10> you read e-books at the library?
<9> programming e-book downloaders are usually kids who are below the level of the book anyway.
<9> real men use hard cover. *taps on iostreams and locales*
<0> my wife and I each have real eBook readers and we like them
<0> Langer & Kreft ?
<9> yeah they rock
<9> (the authors)
<0> tough book to absorb, imo
<9> definitely
<9> I could spend an hour on a page
<0> I think it's the last book on my list
<11> I like that book, too.
<9> with the help of that book I wrote a cl***ic_table changing cl*** inherited from the ctype facet's char specialization
<9> it lets you change the masks for the delimiters :D
<11> I never got into the advanced iostreams stuff :(
<9> or you can do cool things like change the text of the std::boolalpha
<9> switch "yes, pigs do fly!" with the text of true for your locale
<6> Rud0lf: No, the library as most of these books in paper form.
<9> the former was tough to make, at that time I didn't know much about static initialization and scoping
<9> vawjrwrk, I think studying iostreams alone can teach a lot of c++ and some patterns. After that, the templated containers/algorithms look funny
<10> look funny?
<9> what part of "look funny" do you not understand?
<0> cynic_X_ true, though I think they put streams together "not quite right"
<11> "funny", probably.
<10> in what way do templated containers/algorithms look funny after studying iostreams?
<9> in a non-serious way
<9> vawjrwrk, yeah I think it could be done better today
<9> few people vade through the docs to find out what the codecvt facet can do =P
<0> several things could have... e.g. I'm astonished that "range" didn't exist in the 1st go around of teh library
<10> do you mean that they look unprofessional?
<1> I've seen nothing that even approaches the elegance of the containers and algorithms.
<1> Certainly not the crap you see in Java and .NET
<12> in a multimonitor environment, i'm writing a cl*** that derives from Form that automatically centers a window on a monitor once it is dragged over it ... the problem is if the mouse remains in monitor A when the window is dragged over monitor b ... the window centers on monitor b, but then when the MouseUp event occurs (since the mouse is still on monitor A) the window gets placed back on window A...
<3> then center it on the monitor that the mouse is on, maybe
<12> any idears?
<1> Determine which monitor most of the window is on.
<12> that's a lame idea
<3> or, whichever monitor 'most' of the window is on
<13> Centering windows is a lame idea already
<12> the mouse can still be on another monitor
<1> Compare its region inside the bounds of monitor A to that of monitor B
<1> And Ashe is right. Centering is lame.
<1> But that's another issue.
<12> not centering...
<3> why does it center on the mouse's window OnMouseUp? that's your bug
<12> that was actually the wrong word
<10> Solamente: yeah, I like the containers and algorithms too, which is why I wondered what he meant by funny
<12> it moves the whole window to the new window
<1> It's a simple area calculation.
<13> Centering at least made sense
<12> example ... if i'm draggin a window from monitor a to b .. it moves it to b completely
<3> so you want it to 'snap to' the edges
<12> but the mouse doesn't move
<12> YES
<12> i have it snappign already
<13> Ew, if windows this did on my PC I'd even move to Linux
<13> (that tells you how much I'd hate it)
<12> but it snaps while the mouse is down, and then when the mouse goes up ... the window snaps back to monitor a
<3> winamp snaps to the edges - it works by only snapping to the edge if that edge is close to the monitor's edge
<12> know what i'm saying now?
<12> rdragon: i'm not looking for the "snapping" functionality... i already have that
<12> i just need it to stay snapped
<1> So leave it alone when you process the mouse-up event.
<3> so you want us to find your bug
<1> Sounds easy enough.
<1> Exactly. It's a bug. Fix it.
<3> yeah, [13:54] <3> why does it center on the mouse's window OnMouseUp? that's your bug
<12> Solamente: i'm not processing the mouseup event at all
<12> it must be a windows thing


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

vsftpd+ fedora core 4
country did the houses of Rurik and Romanov rule
#linux
#apache
#squid
running ipmitool rocks
#linux
#linux
#linuxhelp
yabanclarla chat



Home  |  disclaimer  |  contact  |  submit quotes