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



Comments:

<0> the recurisve works, and so does the non. i added the none thinking maybe it didn't want to output to file because of some recursion error like filie open or sumthing
<0> well, the methods all work
<1> apparently not or you wouldn't be here asking
<2> thank you vawjrwrk
<0> just instead of doing somethign like outfile<<p->info<<p->count doesn't write to the file :(
<1> c147258 for what?
<2> for unbann
<1> ok, just don't come in here advertising other channels again
<2> yes, sry :(
<1> JaZyOSx what compiler are you using?
<0> g++ 4.0
<1> and the debugger isn't any help?
<0> no, not giving any errors
<1> put a breakpoint on your output line and see why it isn't doing any output
<0> alright, lemme mess with it brb
<3> Hello



<1> howdies
<4> folks, is it a good idea to throw a vector of myExceptions when I want to throw multiple exceptions, or is it better to make another exception cl*** with a vector of myExceptions in it?
<1> how would you get to a point where you have "multiple exceptions" ?
<4> example, I get a propeties map, and I do a recursive validation on them. Every time there is a validation error, I would accumulate an exception
<1> that's silly
<4> is it?
<4> what is the best way to do that then?
<1> no, I just said that because I have nothing better to do
<1> absent an error that would keep the validator from continuing, I cannnot see throwing an exception
<1> validators EXPECT to find errors
<1> things you expect aren't exceptional
<4> how would I notify the caller of the errors then?
<1> and exceptions are for exceptional conditions
<1> mozai I just posted what I use for my recursive directory/file process/validate
<1> that struct is returned from each process/validator and is always "captured" by treestats working = process_validate(.........);
<1> oops
<1> that struct is returned from each process/validator and is always "captured" by treestats working += process_validate(.........);
<1> so when it's all over you have accumulated pretty much everything
<1> staff meeting....back in whenever <sigh>
<5> m is an animal
<0> btw had to do with some stupid way it was accessing the outfile. i got it working :)
<0> woohoo extra credit here i come
<5> is there a library that is smart enough to know which months have how many days or do i need to just code that myself? ;) i'm all about shortcuts if they exist
<6> hi i have a question: alot of applications store data (e.g. graphics, audio) inside the final binary (e.g. graphic demos). how can i link data from an image or anything else directly into my final binary ?
<6> anybody awake ?
<7> yeah
<8> nah
<9> prem, there is no mechanism for doing this in C++ -- you'll need to look into something platform specific
<9> Nonongo, PM spam someone else please
<10> cn28h: you don't threaten me
<11> by I do
<11> but even
<10> run you kinda threaten me cause you have ops
<10> but regardless of that, I'd still fight you
<11> lol
<11> If you pm me, I'd just /ignore you, and so can cn28h
<10> me and cn28h go way back
<12> anyone familiar with wget can you set a number of attempts it should try in the command line parameters so eventually it gives up if it can't reach a destination
<12> yes
<12> not a c++ question
<12> but you know, you guys know it all so i just threw it out there
<10> jill_s: that's not a c++ question
<12> shhhhhhh
<11> --tries=10
<11> You could rtfm
<12> i could
<12> i should
<12> i'm sorry just figured if someone knew it off the top of their head i'd be abusive
<11> I looked it up, I didn't know.
<12> this date thing ****s tho
<12> why can't i just say DATE
<12> and it would tell my program what date it is
<12> windows knows the date
<10> Run ..
<12> thx btw run
<9> try date
<9> not DATE
<12> huh



<12> victor was saying to use boost
<10> Run DMC
<9> what are you trying to do?
<12> you want the short story or the verbose one cn?
<9> short haha, running short on time today
<12> ok
<12> i'm writing a program to pull pdf's off an interactive whiteboard running windows ce that has no obvious file share or ftp access
<12> so i'm using wget
<11> guess I have to leave... time to teach chess again.
<12> basically i only want to go back a set number of days
<12> but i need to know the current day
<12> to backtrack
<12> en p***ant
<12> always fun
<11> I always wondered what an old king needs such a fresh/young little queen for...
<11> chess is perverted game.
<12> that keeps me awake at night
<12> cn any ideas
<6> ok thanks cn28h
<9> ah
<9> so you want only files with certain dates
<12> wget is pissing me off too, i need to rtfm as run suggested and see if i can designate a target save directory
<12> no cn, not quite
<12> see the boards use a strict naming convention
<12> ip/Sessions/20050909/
<12> date i gave is an example
<12> see i am wgetting that index file
<9> ah
<12> then parsing it for pdfs
<12> and then wgetting the pdf directly
<12> the pdfs are at ip/Sessions/Date/hourminutesecond.pdf
<12> but i can't try to grab every second and just fail if it's not there
<12> so i parse the index for a hrefs that have pdf in them
<12> and then i know my target to go and get it
<12> the algorithm may not be the best, but it works and i've got time constraints
<12> my boss just wants something in working order asap because the webserver's hd's **** space wise
<12> ;) he'd be happy with a batch file
<12> but of course now that i'm coding it he comes up with "wow it would be cool to have ..."
<1> yeah.... staff meeting over
<13> is there anyway to force the order that member variables will be placed in memory for a struct or cl***?
<1> yeah
<1> put them in the order you want
<13> it doesn't quite work
<1> really? what compiler?
<13> MS VC7.1... hold on, i'll post the code
<9> jill_s, ah ;P
<1> I've never noticed vc7.1 re-ordering variables
<13> i'm a little confused however... why does the following code work? void Test(){CString a="a"; printf("%s",a);}
<13> is it because CString has its buffer at the beginning so when it's treated as a char* it works correctly?
<13> or is it because of conversion operators?
<1> anon I don't know, I don't care
<1> I don't use printf
<1> or CString
<13> I wouldn't either. But other programmers have used it!
<8> CString probbly has a void * operator or whatever
<13> Can you please have a look at http://www.noidea128.org/sourcefiles/16027.html and see if you notice why that is happening? (line 31)
<8> or char+
<13> Tamama: but so does MyCl*** but it doesn't work like CString
<14> http://www.usatoday.com/news/nation/2006-03-06-vermont-town-meetings_x.htm
<14> the compiler wouldn't know to cast it to char *
<14> or void * in that case
<14> the char * buffer must just be the first data in the cl***.
<13> Noidea: that's why i thought it works because of the member variable ordering, that is, the buffer is placed first for CString...
<8> the char [] buffer then
<8> anyway, since you are obviously rewriting parts... why not get rid of printf
<8> :)
<14> does CString have a << operator?
<8> shouldnt be too hard to write one if it doesnt
<13> i can't possibly take on the task of getting rid of all the printf's
<13> and CString doesn't seem to have the buffer in the first place
<14> I don't know what to tell you


Name:

Comments:

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






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

#london
NASTY_GALS
#linuxhelp
RTNETLINK answers: Invalid argument slack
#linuxhelp
baddi map
chatzone.ws
#chatzone
#linux
#MissKitten



Home  |  disclaimer  |  contact  |  submit quotes