Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Other » i have run into a problem...
Re: i have run into a problem... [message #213138 is a reply to message #213133] Mon, 14 August 2006 04:07 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma:
General (3 Stars)
light wrote on Mon, 14 August 2006 11:01

I'm more a Java person but i'll ask the stupid questions anyway.

1. Does break; break both while loops of just one? (And why do

it will just break the loop that it is in.

light wrote on Mon, 14 August 2006 11:01


2. Would it not save resources and allocation to declare your strong outside your second while loop?


Yes. do you mean "string" *not sarcasticly*

light wrote on Mon, 14 August 2006 11:01


3. EDIT: Wait, on reflection using return 0; inside a method that is not main() is probably your issue. Try removing it. Return 0 basically means "All went well, terminate program, but only main() should call it.



No, the decloration suggests that it should return a DWORD. return 0; does not mean "all went well", it means in "main" terminate program with exit code 0.

in any function, as far as i know, exept a thread return 0 means that the function when finished will be equal to 0. in breif terms. this may not be all correct, but it is when i think of it.


BTW: a "DWORD" is a number (i think) i don't see why you can't just use "int"

thanks for your reply.

[Updated on: Mon, 14 August 2006 04:08]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: just a quick question...
Next Topic: vid card
Goto Forum:
  


Current Time: Sun Jul 28 14:20:14 MST 2024

Total time taken to generate the page: 0.01145 seconds