Valhalla Legends Forums Archive | C/C++ Programming | C++

AuthorMessageTime
BNU-MaStEr
Hey I'm a little new to programming in general, but I was wondering if there was anyone here that could help me with C++, I mainly need something I can mess around with to learn how functions on it work. If you have like an old out of date C++ bot or somethin, that would be cool. I just need to be able to see somethin.

Either way, reply if you can. :)
August 29, 2003, 6:56 PM
drivehappy
http://mousepad.d2network.com/files/mh/d2maphack_46c.cpp
August 29, 2003, 7:15 PM
Zakath
http://mindview.net/Books/TICPP/ThinkingInCPP2e.html
August 29, 2003, 10:56 PM
UserLoser
www.pscode.com ! Just search for what you want to know and get a start and figuring out how the code works and try to understand it, or you can always go and get books/tutorials off the web
August 30, 2003, 4:21 AM
BNU-MaStEr
Hrm...thanks guys for the help, but I was looking for like, an outdated chatbot c++ I just wanna see how it works. I don't know if anyone else is like this, but I learn much better by doing, than by reading.
August 30, 2003, 4:27 PM
Hitmen
This might be of some help. But remember, code leeching is bad! :P
August 30, 2003, 5:13 PM
Spht
A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).
August 30, 2003, 10:42 PM
Camel
[quote author=Spht link=board=5;threadid=2496;start=0#msg19548 date=1062283352]
A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).
[/quote]

(ReadFileEx((HANDLE)Sock, Data, DATA_SIZE-1, &Overlapped, (LPOVERLAPPED_COMPLETION_ROUTINE)&ReceiveCompletion) || GetLastError() == ERROR_IO_PENDING) == False
August 31, 2003, 1:12 AM
Adron
lol, Skywing likes to write that sort of code? Doesn't it look very simple? :P
August 31, 2003, 1:42 AM
Camel
Well it's not that hard to figgure out, but I would bet that most newbies to code wouldnt be able to figgure out why the GetLastError call is okay on the same line. I always try to space my code out so I don't end up with that kind of code -- the compiler has to work it out anyways, so why bother?

[edit] Did you know that there's a 't' in the word 'bet'?
August 31, 2003, 1:47 AM
Eibro
[quote author=Spht link=board=5;threadid=2496;start=0#msg19548 date=1062283352]
A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).
[/quote]Seems to me that code won't work unless the Internal* and Offset* member variables of the OVERLAPPED struct are zeroed out. At least, in the past i've had problems with leaving them as-is.
August 31, 2003, 12:00 PM
Skywing
[quote author=Eibro link=board=5;threadid=2496;start=0#msg19578 date=1062331242]
[quote author=Spht link=board=5;threadid=2496;start=0#msg19548 date=1062283352]
A good example (less complex) would be Skywing's MiniChat (http://www.valhallalegends.com/skywing/files/MiniChat.cpp).
[/quote]Seems to me that code won't work unless the Internal* and Offset* member variables of the OVERLAPPED struct are zeroed out. At least, in the past i've had problems with leaving them as-is.
[/quote]
Yeah, that's a bug I never fixed in the version I posted.
August 31, 2003, 4:18 PM

Search