| |
| |
| |
|
Page: 1 2 3 4 5 6 7
Comments:
<0> does anyone have experience with windows driver development? <1> isn't that equivalent to banging your head against a wall and increasing the force every time the pain increases? <0> :) <2> damnit, does anyone knows if it is possible to declare a private cl*** but in a different header file? When I put both declarations in the same header file it works, when I use two header files, it doesn't, even when using forward declarations <3> What is a private cl***? <4> what's a private cl***? <3> heh <3> I always love it when all the guru's here ask the same questions :p <2> "A private cl*** is a cl*** created only for implementation purposes and is hidden from normal users. Typically, all its constructors (and often all its other members as well) are private: and it declares another cl*** as its friend" <4> if you say so <4> it's kinda hard to use if all it's constructors are private <3> According to that definition, you should put it in a .cpp file, or in a header file that is not distributed (only used to compile the library) <4> and I've never seen that done <3> As soon as you put it in a distributed, header, it obviously becomes public. <5> vawjr: a singleton has a private constructor, or a cl*** that can only be created using a factory or something like that <2> example, cl*** A{public:A() private: cl*** B; B* b} - cl*** A::B{private:friend A; B()}
<4> likoo I guess I just don't need that kind of thing in what I write <3> I don't see how you can put B in a different header than A if you do it like that. <2> yeah, but my problem is seperating the two definition in two seperate header files <2> Run: no? <3> No, cause B is declared inside A. <4> likoo are you going to be doing the pimpl idiom ? <2> yes <2> <3> No, cause B is declared inside A. <-- but it is a forward declaration <2> the problem though becomes the circular dependency <2> A.h depends on B.h, and B.h depends on A.h <4> I don't see any circular dependency <4> you don't need to include B.h in A.h, you're only doing cl*** B; B* pimpl; <3> Can't you just include the A::B declaration inside A.h after you declared A? <2> Run: I can, but i though it would be more 'modular' to have 2 seperate .h <3> Yeah, that too... and then just include A.h at the top of B.h thus. <4> you will need to include B.h in A.cpp <2> vawjr: Hmm... you need to include b in a <2> if i want to use it's methods <2> oh <4> nO <2> you're right <2> in A.cpp <4> you use it's methods in A.cpp (maybe) <2> not A.h <2> excellent <2> lemme try it <3> A.h: cl*** A { public: A(); private: cl*** B; B* b; }; <3> B.h: #include "A.h" cl*** A::B { }; // if that works :/ <4> and you may declare a bunch of "forwarding" methods in A.h also <2> example? <1> Ashe`, lol, i've set out to plan how the game will work, thought it out only until the menu(including), and already my brain's exploding :D <4> well, as written, what Run proposed can't DO anything, it has no methods <4> certainly you need to add some methods of some sort <3> I didn't write them, they are there of course. <4> right <6> JBlitzen, our commander just got 337 in a single round <6> wtf <2> A.cpp will use the B's code <6> next highest: 73 <7> Weird <7> I have no idea how it does the calculations <7> BUT <7> It may have changed in the last two patches <3> vawjr: You read the boost user list? Did you see my question about serialization of STL iterators? <2> Waho! It woks!! <2> just include B.h in A.cpp <2> there is no need for it yet in A.h <4> yeah <2> i forward declare the B cl*** anyways <4> Run I did <2> great, great <6> well <6> the patch broke things <3> vawjr: I suppose you don't know how boost::serialization tracking works? <6> our server's stuck on map roation <4> no I don't, I've pretty much ignored boost::serialization thusfar <3> <off topic>I need an oscilioscoop, or how do I write that... it should be pretty easy to make one using a PC, shouldn't it? :/. <4> oscilloscope <3> thanks <8> radioshack sells an AD converter you can hook up to a pc
<4> not all that easy unless you happen to have some very high-speed A/D converters laying around, and a way to talk to them w/ the PC <3> I can imagine that with a video AD converter you can easily make an oscilloscope for 1 MHz, even 10 perhaps. 8 bits is more than enough :/ <3> Oh, but you can buffer the data - no need for the PC to read as fast as you write to it. <9> pardon me for butting in,,but how fast of comm are you talking? <4> well, then you need some buffering hardware <3> I'd need an analogue front-end, a fast A/D converter and some memory to buffer the data. It really can't be hard, or expensive :/ <9> why not use some plc hardware? <3> plc? <4> Run there are some o'scope boards for computers, I've seen up to 8 channel ones <9> programable logic controller <9> used in industrial autmoation <8> Run: it can be expensive, if you need high bandwidth <8> Run: there are some free schematics on the web.. can't rememer where though <3> http://www.circuitsonline.net/circuits/view/133 <3> I wonder if an A/D converter like that is accurate enough ... <8> it's low band.. <8> usually anything > 5Mhz will require expensive hardware <3> I used to do electronics for high frequencies (transmitters, radios), but now I will only be interested in audio. Nevertheless, it wouldn't hurt if it could show me a 10 Mhz sine. <3> I had a scope that was dual 50 Mhz, but it died :/ <4> I think my scope is only dual 10 Tektronix 465 <10> I think it's 100, not 10 <3> http://www.ise.pw.edu.pl/~wzab/picadc3/ <3> wtf is a PIC ? <11> lol <4> a god awfull devicce <4> they're cheap (inexpensive, too) <3> Oh, that's that IC. <3> I'll have to find a datasheet of it :/ <3> It's an IC with 40 pins right? <4> depends on the packaging <4> and which model PIC (it's a family of processors) <10> does basic stamp still exist ? <12> Good evening guys! <13> hi PM2 <14> HI! <12> What's up folks? <14> not much f00 <12> e_roder : 'bout what? <13> serverless networks, trustworthy users, and rivers of rootbeer <12> e_roder : trustworthy users? I don't think that exists! <13> i told you i was dreaming <12> lol <12> Anyways! I got a problem! <13> shoot <13> (i don't know c++ beyond java, but shoot any way) <12> lol <14> calc ask <15> ask = Just how much time do you intend to waste asking if it's okay to request if you might inquire if it would be alright if you could pose a question? JUST ASK THE DAMN QUESTION! <13> Kniht: lol <13> that deserves a bash <12> Cowmoo : I know!!! :P <12> Cowmoo : I just need a second to post the damn thing on the web :P lol <12> http://www.noidea128.org/sourcefiles/16049.html <12> There <12> Now, the problem ... <16> PM2 what's the question? <17> why is it in french :P <16> what are you using character arrays instead of strings? <12> Tamama : Because I AM French! :P <17> well nobody is perfect... <16> also, never ever ever put a 'using' statement in a header file. <14> call Ashe <12> Tamama : Couldn't have spoken better about yourself dude! :P <12> Guys ... may I ask my question? lol <17> Well I am close to perfect in the sense that i almost perfectly forgot all french i ever learned <16> just ask already <12> So, when I call the program without any input, it works just fine ... <12> But when I call the program with input, a file containing automatic commands ... <12> It works up to the point where it keeps looping with the last character in the input file ... <12> Yes, I have put a cin.ignore() command in the code <12> rdragon : Before you ask, I use linked list because I don't have a choice, my prof forbids us to use anything STL ... <12> Tamama : Tu as dj appris du franais? :) <12> Tamama : How many languages do you speak?
Return to
#c++ or Go to some related
logs:
symbol lookup error: /usr/lib/libamarok.so.0: undefined symbol: _ZN9KIconView22c printf C2022 Tac-Cintura Gudja websphere exitVM #javascript #linux dcc stats irssi matt pakora #php mIRC pedo
|
|