@# 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 10



Comments:

<0> but that's rare
<1> reading or writing?!
<1> 3 pages a day is weak, you should have the whole thing done in a week if you want to get anything out of it.
<2> # of pages really doesn't mean anything
<0> ok 2 months if I do 15 pages per day
<1> a week to read it, another week or two to study the finer points.
<2> im sure it will take you more than a year to have a command over everything covered
<0> I don't proceed past something if I don't at least know what they're talkign abotu
<3> Hey, if I p*** an object by value to a function... is the ***ignment operator called to copy it?
<2> no, jauncie
<2> the copy constructor is called
<1> i just ordered a DS80C400-KIT
<3> rdragon: That's what I thought. If I p*** it by reference though, is the copy constructor also called then?
<2> no
<2> constructors get called when objects get created
<2> no object gets created if you p*** it by reference



<2> unless there is creation of a temporary
<3> That's what I thought.
<3> wait... is a temp created?
<4> Nope
<2> depends on if it needs to be or not
<4> Just p*** by reference
<4> P***ing by copy is for ints and such
<5> and p*** by const reference if that's what you mean
<0> damn, I have 3 more hours of work :(((
<3> rdragon: When does it "need to be"?
<3> anyone?
<4> It never does
<4> If you p*** by reference nothing gets created
<3> rdragon said that sometimes a temporary is created
<6> yes, for example if you p***s a+b
<3> I see. What about when you return by value? copy constructor again?
<3> and if I return by reference? The ***ignment operator is never called there either?
<4> vawjr: well that's done before p***ing it to the function..
<6> jauncie yes, copy constructors everywhere
<3> MrAshe: Okay, I understand your point. Now what about returning by value/reference?
<3> vawjr: Thanks.
<3> Wait.. this is a newbie question... what does it mean to return by reference if you didn't p*** by reference? The only thing I've ever returned by reference is something that was p***ed by reference, or *this
<6> ok, those are fine
<3> Right, but what does it mean to return be reference otherwise?
<6> but, for example, as a general rule somecontainer[x] returns a reference to an element
<3> Say I return an object of cl*** myCl*** which was declared in my function, and the function's return type is myCl***&
<6> it means exactly what you think it does, it's NOT a new instance, it _refers_ to another one
<6> jauncie then you're lying to the system, returning a reference to somehting that's going to vanish is a no-no
<3> 'kay, that's what I figured
<3> So what other times is it okay to return by reference?
<6> get a book
<3> other than the cases I mentioned (an object that was p***ed by reference and *this)
<6> we're not here to teach fundamental C++
<6> I mentioned one
<7> speaking of fundamental C++
<7> I declared a function __declspec(dllexport) bool GetMetaInfo(char *retVal);
<7> inside a dll
<4> It'll be mangled
<8> exteern "C"
<8> extern
<7> instead of __declspec(dllexport)
<4> Nope, both
<8> as well as
<7> k thanks
<9> I'm having problems opening old windows word processor files... does anyone know a program that will open them?
<4> Word
<8> old ?
<9> word.exe?
<8> define old
<9> well it was saved on win 95 I think
<9> not sure
<10> MS Word or WordPerfect?
<9> not sure
<10> you might try openoffice
<11> hummmm
<11> there's not enough interesting talk in here.
<7> it says "Unable to find entry point GetMetaInfo in dll"
<10> it has a good reputation in opening word files that msword can't open anymore
<8> did you get dependancywalker?
<1> it does.
<1> oo.org does great opening dead files.



<4> That's cause it was born dead
<4> FBKK: www.dependencywalker.com
<7> yes have it open in depwalker right now
<4> Then?
<7> the exported function still looks mangled though
<4> With extern "C"?
<7> yes
<4> Then you did it wrong
<7> declared it extern "C" __declspec(dllexport) bool GetMetaInfo(char *retVal);
<1> extern "C"
<4> And you defined it without it heheh
<7> ??
<7> no I have extern "C" both in the header and the source file
<4> Then recompiler
<4> -r
<7> no it still says that
<7> dunno what else to do
<7> dependancy walker says the function isn't mangled anymore
<8> does it have an underscore
<7> but when I DllImport from C# it still throws a Entry point not found exception
<7> no , no underscore
<7> in front of the function there is a "C" as oposed to "C++" for some other functions
<7> should it have a underscore ?
<8> oh well you'll just have to debug
<1> an underscore.
<8> psychic debugging is too hard
<0> is asriel one of the best in here at programming?
<12> yes hi is )
<8> umm stupid question...next!
<12> he
<0> I thought so
<0> smart dude
<12> bealtine smart too )
<0> for where I live and work, I'm a smart guy, but not in here
<0> :D
<4> Are you trying to say you're surrounded by idiots?
<12> vawjr - real guru =). As many others
<0> mostly
<0> I know two guys who are really great and live around here
<0> noidea is also in my area as well
<0> so I gotta meet him
<12> PfloydWork where do you live?
<0> Oakland, CA
<0> you?
<12> Kharkov, Ukraine
<0> wow, that's cool, I hate the U.S. so far
<12> =)
<13> if (function1() || function2()) return true; if function1 returns true, will function2 be executed?
<0> I want to travel a bit, because i haven't been out of my city that much
<12> RoGx no it willn't i suppose
<12> =)
<10> WhiteVoid: "it won't"
<12> heh.
<12> Yes, mathieu_. Thanks )
<13> ok thank you guys
<10> np
<13> hope it willn't
<12> ))
<10> it WON'T!
<4> It willn't and it won't
<10> :)
<12> it won't $)
<4> if (function1() && function2()) // if function1() returns false, function2 is not called either
<0> willn't = will + won't
<4> If you want to travel a bit I can give you my job
<12> =)
<12> MrAshe and what are you? (if it's correct to say so)
<13> MrAshe, thanks for the precision, was wondering too
<14> Ashe wtf
<14> since when are you Mr. Ashe :)
<4> I make the software that handles your phone calls, basically
<4> Cowmoo: I was tired of the `
<14> haha


Name:

Comments:

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






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

#chatzone
serious53
#MissKitten
linux codec dump
gays-sory
#skype
wats op in london
#asm
#linux
dated a sikh



Home  |  disclaimer  |  contact  |  submit quotes