ok then, storing the pointers works so ill keep that.
Type: Posts; User: *DEAD*
ok then, storing the pointers works so ill keep that.
hi, im trying to write a program that parses messages using classes derived from a stub hook class.
uint32_t HookManager::addReadHook (uint8_t id, ReadHook* hook) {
if (!hook) {
...
lol ur right, the classes in question didnt have deconstructors, ::smacks himself over the head::
thank god for source control...
For anyones interest i took the latter approach and gave factories the ability to delete messages by looking up their ids and then choosing an appropriate type to cast to before deleting them.
it is virtual, and i think i know what your talking about. The problem is im deleteing the base class, not the derived class.
I know that when you delete a derived class the constructor of the base...
Hi, i am writing a client for some protocol which has several messages defined. Ive been passing these messages around in a list of type <Message*>, whilst each individual message is derived from...
im not exactly sure how it works, i would assume that since it is my code which is actually making the call to read that the calls made would be my calls. Anyway, thats irrelevant, the point is that...
hi, ive been playing with LD_PRELOAD for a little while now (its so cool isnt it lol) and ive managed to do fun stuff like replace gettimeofday() with one that always returns 0 and run xclock. now i...
sorry i guess i missed the point twice lol
neway that worked and thx a million for all the help
yes but even with a copy constructor
Matrix::Matrix(Matrix ©)
{
nn = copy.nn;
mm = copy.mm;
matrix = new float[mm*nn];
for(int mi = 0; mi < mm; mi++)
{
yes i have no doubt all of hells minions would converge on me if i were to use the heap. The problem remains tho i have to return a new Matrix (which is currently created by Matrix result = *this) so...
hi im trying to make a matrix class which makes use of operator overloading. Ive followed several tutorials, and the one which looked best implemented the binary operators (+ - etc) using unary...
Hi, didnt really know to put this under networking or windows, but anyway here it goes.
I was reading an article on gamedev about async sockets and there was a section titled
Re-enabling Functions...
ok i get what ur saying. Thx for the help, both of you :D
its a binary file, so yea it just terminates
thx for the explanation, as part of the younger generation a little history is always interesting.
And well it doesnt end in an A1, so does this mean im reading a binary or a text file lol?
no i but i just googled that and it did solve the problem, lol first time with fileio. Anyway, whats the difference?
hi, im trying to use fread() to read from a binary file and there is an incredibly annoying problem. It will read the first 100 or so bytes correctly, then the file just closes for no apparent ...
Well, i think your talking about what happens with non-blocking sockets once they have been initialized. If you call recv and the call wouldblock, then it returns a blocking error and you must parse...
Hi, im sorry for asking what must be a very simple question, but i just cant figure out (ive googled and sifted thru msdn) how to set a socket as non blocking. Is it a function which sets it as non...
Just curious, is there a c (not c++ theres wxDevcpp for that) form designer out there. I tried googling it but you dont get many results for "c".
Hi, i have a server which randomly crashes on occasion and im trying to hunt down the problem. Im just wonder, are winsock functions thread safe? i should point out im using winsock 1.1
ok, so accept() will block and should be in the loop, and theres some sort of magical queue created in the background. I hate magic, so confusing.
Thx, im pretty sure i can work from there.
it could be used to debug a program... i guess
Hi, im designing a login server for a game, and every time the server receives a connection i intend to a launch a new thread. I was playing with the code from another server i made which was only...
look up dll injection. If you search tibia hproxy, you might be able to find an example of this where i guy hooked the send and receive functions of the online game tibia.