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



Comments:

<0> because it'd work
<1> its so short tho... seems like it should work
<1> HBITMAP hBitmapHandles[4] = {hB01, hB02, hB04, hB05};
<1> int hResource[4] = {IDB_01, IDB_02, IDB_04, IDB_05};
<1> for (int k = 0; k<4; k++)
<1> {
<1> hBitmapHandles[k] = LoadBitmap(hModsule, MAKEINTRESOURCE(hResource[k]));
<1> }
<0> quit pasting in the channel
<1> fine...
<2> man, I just can't win
<2> my TV is broken
<3> oi
<2> my laptop broke
<2> the power supply died on me
<0> what do you do with hBitmapHandles then?



<2> I just get it replaced
<2> and now the hinges on the screen break
<3> anyone have an idea, when i compile, a compiler give me 0x000... invalid pointer on a string
<2> so it doesn't open and close properly now.
<3> but everything is well coded
<0> NoideaLT: that's not all, your wife's pregnant with my kid
<2> it doesn't sound like it's well coded to me.
<1> another loop around which is: SendMessage(hHwnds[i],STM_SETIMAGE,IMAGE_BITMAP,(LONG) hBitmapHandles[i]);
<2> Ha! I don't have a wife!
<0> hmm
<2> I'm sure my climbing harness will fail on me next
<3> huh
<0> whose was it then?
<2> or maybe my rope.
<0> *shrug*
<3> seriously, i have 2 compiler of the same type, one is compiling, the other isnt
<3> both same version, altho they are not on the same machine
<0> MEEEEEE: whatever you're doing, you're doing it wrong
<0> "it doesn't work with an array" makes zero sense if it works without
<1> how can it be done then? it just seems like im not doign it wrong..
<1> yer tellin me...
<1> tsk tsk... ill rethink this
<2> buffer overflow
<1> thanks for the help
<2> you're welcome
<0> some aren't meant to program
<3> what about me ?
<0> you're problem's very obvious
<0> you have a null pointer
<0> do I need to make the gl*** breaking noise?
<3> i don't
<3> well i do in 1 machine and the other i dont ?
<0> well?
<3> how is that possible
<3> and in both machine MS VC++ works fine
<0> it happens quite a lot actually
<0> give more detail
<3> PV ?
<0> here.
<3> meh
<0> unless it's a code paste, obviously
<3> ok, i have a codewarrior IDE 9.4 and a MS VC++, on this machine, at school we have the same equip. Altho at school i get null pointer exception on codewarrior and it works fine in MS VC++
<0> well, debug it
<4> That's sort of the whole point of those two systems, isn't it?
<0> <hint hint> use the call stack debug window
<4> I'm guessing you're following an uninitialized or already deleted pointer.
<4> That might help you in your debugging.
<0> could be pretty much anything
<4> True enough.
<3> it does that on each string
<3> well the first ones
<0> debug it?
<4> Most school kids come in to that problem, though, using something like: Node *head; Node *child; Head->next = child; ...
<4> But you know that already. ;-)
<5> they should have a cl*** on how to debug things
<5> it's a very important skill
<4> Where would they get a qualified teacher?
<5> good question
<0> they wouldn't
<5> i learned most of my debugging skills working on a debugger =)
<5> good way to go



<3> well, i know how to debug, but why debug something that work ?
<0> does it work?
<0> doesn't look like it does
<3> well on my machine
<0> well, your code is not flawless
<0> it's never going to be
<3> and with msVC++ on the other machine
<0> would you just go and debug the damn thing?
<3> yer
<3> thats where i work : http://www.b0g.org/wsnm/articles/Admins+at+work
<0> it's not going to solve itself by kicking your confidence up 10 notches or crying about it
<0> you should be happy to work there.
<0> my chair is not blue.
<0> I want a blue chair.
<6> Did I miss anything?
<0> yes
<0> [22:04] * Quits: frob (bryanw@frob.users.undernet.org) (Ping timeout)
<6> Yeah, I knew that.
<6> Anything else?
<5> wish the pager would blink when i have notification of a window on another desktop (i've got the option set so that kicker's task bar only shows windows for the current desktop)
<3> meh *invalid pointer* but am not using an pointer there
<3> putting #include <string> in every page could mess with my strings ?
<7> what is the line that gives the error?
<3> string choice;
<3> they don't give a line...
<3> well both are invalid pointer at strings
<7> post your code
<8> if I want to use the std stack should I include the #include <stack>?
<3> yes
<7> ah, writing a Sodoku solver
<8> including the #include <stack> and using the std::stack is redundant right?
<7> tuxxx, no
<8> why?
<8> what is the point ?
<8> isnt the stack part of the std?
<7> how would you use it without including it?
<8> nevermind Im not make it sense today..
<3> i make sense, but it depends on the machine ;(
<3> it begin with a *invalid pointer* to choix and become an *can't read from the adress*
<7> toast, runtime error?
<3> yes
<7> ah
<7> use your debugger
<0> I believe we suggested that about 7 times already
<0> but his code is correct!!
<0> so he says, anyway.
<3> i use it lol, but dunno how to fix it
<0> that's because you haven't found what's wrong
<0> that's the point of debugging
<9> heh
<9> cn28 sup
<9> its ne0
<7> yo
<7> not a lot, just implementing some secure C string functions
<7> (serious pain in the ***) heheh
<9> heh
<9> wow
<10> http://www.nomorepasting.com/paste.php?pasteID=58073 whats best way to prevent divsion by 0?
<11> Check to see if the value is 0, and if so return an error or throw an event or something
<10> I tried while ( velocity == 0 || area_wing_surface == 0) blah blah right before an calcualtion but didn't work right
<11> Then you might have the wrong location for the error
<10> had it on line 68...seems right?
<11> Well, line 68 is blank in that file
<11> So apparently that's not where the error occurred
<10> lol :)
<11> Don't give yourself a headache trying to fix an error you haven't localized
<11> Debug it, figure out what's breaking, why, and then it'll be easy to fix.
<10> http://www.nomorepasting.com/paste.php?pasteID=58074
<12> break out that good ol debugger
<10> Problem: if both inputs are 0, it makes you enter more the correct data. once you enter proper data for the first one, then 0 for the second, it makes you input the first all over again...
<12> "it" meaning -your- code
<10> maybe its the only way i can do it ~shrugs~
<10> yeah
<10> ideas?


Name:

Comments:

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






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

Pitiross
What did Australia receive its first shipment of in 1788
#MissKitten
#MissKitten
gumsticks linux
infocus x1 ballast
+dmx +kde
#php
#mirc
/usr/kde/3.5/bin/startkde gentoo



Home  |  disclaimer  |  contact  |  submit quotes