Search:

Type: Posts; User: *DEAD*

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,859

    ok then, storing the pointers works so ill keep...

    ok then, storing the pointers works so ill keep that.
  2. Replies
    2
    Views
    2,859

    storing derived classes in a stl container

    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) {
    ...
  3. Replies
    6
    Views
    1,897

    lol ur right, the classes in question didnt have...

    lol ur right, the classes in question didnt have deconstructors, ::smacks himself over the head::

    thank god for source control...
  4. Replies
    6
    Views
    1,897

    For anyones interest i took the latter approach...

    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.
  5. Replies
    6
    Views
    1,897

    it is virtual, and i think i know what your...

    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...
  6. Replies
    6
    Views
    1,897

    Deleting derived classes

    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...
  7. im not exactly sure how it works, i would assume...

    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...
  8. strange behavior when intercepting read() with LD_PRELOAD

    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...
  9. Replies
    9
    Views
    2,254

    sorry i guess i missed the point twice lol neway...

    sorry i guess i missed the point twice lol
    neway that worked and thx a million for all the help
  10. Replies
    9
    Views
    2,254

    yes but even with a copy constructor ...

    yes but even with a copy constructor


    Matrix::Matrix(Matrix &copy)
    {
    nn = copy.nn;
    mm = copy.mm;
    matrix = new float[mm*nn];
    for(int mi = 0; mi < mm; mi++)
    {
  11. Replies
    9
    Views
    2,254

    yes i have no doubt all of hells minions would...

    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...
  12. Replies
    9
    Views
    2,254

    question about overloading operators

    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...
  13. Replies
    1
    Views
    3,190

    Question about WSAAsync sockets

    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...
  14. Thread: fread woes

    by *DEAD*
    Replies
    6
    Views
    1,257

    ok i get what ur saying. Thx for the help, both...

    ok i get what ur saying. Thx for the help, both of you :D
    its a binary file, so yea it just terminates
  15. Thread: fread woes

    by *DEAD*
    Replies
    6
    Views
    1,257

    thx for the explanation, as part of the younger...

    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?
  16. Thread: fread woes

    by *DEAD*
    Replies
    6
    Views
    1,257

    no i but i just googled that and it did solve the...

    no i but i just googled that and it did solve the problem, lol first time with fileio. Anyway, whats the difference?
  17. Thread: fread woes

    by *DEAD*
    Replies
    6
    Views
    1,257

    fread woes

    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 ...
  18. Well, i think your talking about what happens...

    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...
  19. How to initialize a non blocking socket using only winsock library

    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...
  20. is there a c form designer out there by any chance

    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".
  21. Replies
    2
    Views
    3,337

    are winsock functions thread safe?

    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
  22. ok, so accept() will block and should be in the...

    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.
  23. Replies
    4
    Views
    3,352

    it could be used to debug a program... i guess

    it could be used to debug a program... i guess
  24. What exactly does listen() do from winsock 1.1

    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...
  25. Replies
    4
    Views
    3,352

    look up dll injection. If you search tibia...

    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.
Results 1 to 25 of 64
Page 1 of 3 1 2 3