Search:

Type: Posts; User: eXeCuTeR

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,155

    How do file compressors work?

    I was always wondering how do all the file compressors work?
    I have always thought of writing one. Thanks.
  2. Replies
    6
    Views
    3,710

    Well hooking is probably the issue. BTW, you...

    Well hooking is probably the issue. BTW, you cannot actually override the Window Procedure of another process, but you could set a hook with SetWindowsHookEx()
  3. Replies
    35
    Views
    4,478

    EDIT: Wrong thread.

    EDIT: Wrong thread.
  4. Thread: Threading

    by eXeCuTeR
    Replies
    18
    Views
    2,310

    using the pthread_mutex_lock() and...

    using the pthread_mutex_lock() and pthread_mutex_unlock() is just like a lock block.
    e.g:


    C: (pthread.h)
    pthread_mutex_lock();
    // some code
    pthread_mutex_unlock();

    C#: (System.Threading)
  5. Thread: Threading

    by eXeCuTeR
    Replies
    18
    Views
    2,310

    What you are seeking is the pthread_mutex_lock...

    What you are seeking is the pthread_mutex_lock function in C (or a lock { } block in C#), so only one thread can execute a particular piece of code at a time.
  6. Thread: Pipe class.

    by eXeCuTeR
    Replies
    8
    Views
    3,992

    1. Yeah, I should erase that - that was used for...

    1. Yeah, I should erase that - that was used for bugs detecting, and I forgot to remove it.
    2. I will make a condition if it fails.
    3. How come will the pipes be leaked? Although I haven't thought...
  7. Thread: Pipe class.

    by eXeCuTeR
    Replies
    8
    Views
    3,992

    Well what I actually tried to do in Read() is to...

    Well what I actually tried to do in Read() is to read all the data in one single chunk.
    For example, is the buffer_size is 10 bytes long, and the data in the pipe is more than 10 bytes (let's assume...
  8. Thread: Pipe class.

    by eXeCuTeR
    Replies
    8
    Views
    3,992

    Hey, thanks for the comments! About the...

    Hey, thanks for the comments!

    About the sizeof....I didn't notice I used sizeof instead of strlen, that was totally dumb of me (guessing I was too tired or whatever)
    ---
    I need to use realloc in...
  9. Thread: Pipe class.

    by eXeCuTeR
    Replies
    8
    Views
    3,992

    Pipe class.

    I've written this today, very easy to use:
    http://pastebin.com/m1c430b6a


    /* PIPES HANDLING CLASS
    * written by eXeCuTeR, 19.8.08
    * Works only on GNU/Linux or any UNIX system.
    *...
  10. Replies
    9
    Views
    1,749

    I'm not sure if will can work with textboxes but...

    I'm not sure if will can work with textboxes but anyways, you can also use pipes.
  11. Replies
    7
    Views
    1,368

    Working with DevC++ is a nightmare, hehe. I...

    Working with DevC++ is a nightmare, hehe.
    I usually program on Linux with Geany, which is SO MUCH better.
  12. Replies
    7
    Views
    1,368

    Thanks for the comment. About the loops...how...

    Thanks for the comment.
    About the loops...how can you actually tell whether you can use, int i; for(i = 0;...) or for(int i = 0;..)?



    Yeah, I know, the indentation is messed up here but it...
  13. Replies
    53
    Views
    4,297

    If you just wanna export functions from other...

    If you just wanna export functions from other files, just create a DLL and include it in your code with LoadLibrary.
    Then, get the function's address by using GetProcAddress.
    Something like this.....
  14. Replies
    7
    Views
    1,368

    Anyone? Again, there's no compilation errors it...

    Anyone?
    Again, there's no compilation errors it just doesn't work well:
    if(FD_ISSET(i, this->readyList)) seem not to be working, although this statement is totally fine (and the select() function...
  15. Replies
    7
    Views
    1,368

    Divided my chat into classes and whoops..

    Hey guys,
    I divided my chat server into a class and added a thread which is created when a user is trying to enter so he could enter the nickname and the "queue" (the loop) will be interrupted or...
  16. What I'm trying to do IS NOT for a virus purpose,...

    What I'm trying to do IS NOT for a virus purpose, I guarantee - as I've told you, a friend gave me 2 programs: one that creates a process of the other one, and the other one who OpenClipboard(),...
  17. I mentioned that he used these names for the...

    I mentioned that he used these names for the names of the program.
    And yeah, I'm trying to make that no other application will be able to write to the clipboard.
  18. A friend gave me 2 programs he created: One...

    A friend gave me 2 programs he created:
    One program (msnmsgr.exe, the first one) uses CreateProcess to the other one which is (svchost.exe, another program he created) and this program open the...
  19. Prevent other applications from accesing the Clipboard.

    Does anybody know a way to do such thing? I assume there's some API functions.
    Thanks!
  20. Replies
    10
    Views
    1,299

    Oh, I'm sorry, you're right, I'll edit. And...

    Oh, I'm sorry, you're right, I'll edit.
    And again, I assure you these 3 asterisks relate to the __vptr.
  21. Replies
    10
    Views
    1,299

    Well it seems like it, but you can't be sure...

    Well it seems like it, but you can't be sure because you don't know if someClass is an instance of another class (which is the derived/base class) and it might that the () operator was overloaded or...
  22. Replies
    10
    Views
    1,299

    Vtables riddle.

    I've come across this riddle:
    What will this code do -


    (***someClass)();

    What will these 3 asterisks do?
    This relates to the virtual table and the __vptr.

    (someClass is AN INSTANCE OF an...
  23. Replies
    31
    Views
    12,596

    Yep, thanks, I've got the idea that only the OS...

    Yep, thanks, I've got the idea that only the OS itself can only access this part of the memory.
  24. Replies
    19
    Views
    2,525

    Well, this is an option: (there's no checking...

    Well, this is an option:
    (there's no checking whether index is bigger than the number of elements of the linked list, you can make one easily though)


    typedef struct
    {
    int data;
    struct node...
  25. Replies
    31
    Views
    12,596

    Of course it's the same principal but how does it...

    Of course it's the same principal but how does it access the heap?
    ---
    Hehe, yeah cpjust, that's certainly an option.
Results 1 to 25 of 242
Page 1 of 10 1 2 3 4