Search:

Type: Posts; User: Wolf`

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,606

    Trying to figure out DEFLATE

    The part I'm having trouble with is decoding the Huffman codes when they're specified in the header. This is done by the code lengths, and I get most of the process. The part I don't get, is the...
  2. Replies
    0
    Views
    1,724

    DeviceIoControl not working

    I'm trying to make my driver accept ioctls, but it doesn't even call the IO Control function, the debug output isn't there. I can see in DbgView that it's loaded and executed fine, but ioctls don't...
  3. I managed to fix it by not getting the size and...

    I managed to fix it by not getting the size and just allocating a large buffer. It's not the most elegant solution, but I'll free it after. I have another question, however, once I have the...
  4. Help with IOCTL_USB_GET_DESCRIPTOR_FROM_NODE_CONNECTION

    I'm trying to get the configuration descriptor for a device I already have a PUSB_NODE_CONNECTION_INFORMATION_EX structure for. I'm working off of the usbview example in the Windows DDK. Here's the...
  5. Replies
    13
    Views
    2,246

    I see, thanks, works now.

    I see, thanks, works now.
  6. Replies
    13
    Views
    2,246

    My problem is, is that I believe my plaintext...

    My problem is, is that I believe my plaintext buffer is perfectly fine, seeing as arrays start at 0, and I am storing 32 characters, stopping at 31, leaving 32 for the NULL. And I know what hex is,...
  7. Replies
    13
    Views
    2,246

    It is inconsistent, sorry, it printed out 00 33...

    It is inconsistent, sorry, it printed out 00 33 before, strangely.

    @quzah Unsigned variables use the sign bit as part of the value, making them able to support larger numbers, but can't do...
  8. Replies
    13
    Views
    2,246

    Possible bug in scanf()?

    I'm working on a larger program, but have managed to isolate the problem in this small one. I am using GCC 4.4.5, and scanf seems to have a strange inconsistency.


    #include <stdio.h>

    int...
  9. Replies
    5
    Views
    6,606

    Thanks a ton!

    Thanks a ton!
  10. Replies
    5
    Views
    6,606

    When I do that, I get this: tcp.cpp: In...

    When I do that, I get this:


    tcp.cpp: In member function ‘char* tcpSocket::resolve(char*)’:
    tcp.cpp:117: error: no matching function for call to ‘sockaddr::sockaddr(in_addr_t&)’...
  11. Replies
    5
    Views
    6,606

    Unable to use in_addr type with arpa/inet.h

    Whenever I do not include arpa/inet.h, this compiles fine in g++, but I cannot use some functions. The error in g++ is:


    tcp.cpp:117: error: conversion from ‘in_addr_t’ to non-scalar type...
  12. Replies
    15
    Views
    3,751

    I understand the concept of a buffer, thank you....

    I understand the concept of a buffer, thank you. Never mind, I'll go elsewhere.
  13. Replies
    15
    Views
    3,751

    Kind of hard when it's a hexdump output that you...

    Kind of hard when it's a hexdump output that you create on the fly...
  14. Replies
    15
    Views
    3,751

    Yeah, it's a small one, but anyway, I wanted to...

    Yeah, it's a small one, but anyway, I wanted to create a scrolling type ability for the command line. MS should open source edit.com by now.
  15. Replies
    15
    Views
    3,751

    I can grab the keystroke, my point is how to...

    I can grab the keystroke, my point is how to repaint the screen? How do I store what was previous, etc.
  16. Replies
    15
    Views
    3,751

    How can I scroll up and down with the arrow keys...

    How can I scroll up and down with the arrow keys is my point, like EDIT.COM?
  17. Replies
    15
    Views
    3,751

    Listen, I have direct access, because I wrote the...

    Listen, I have direct access, because I wrote the kernel. This is my point.
  18. Replies
    15
    Views
    3,751

    Let's assume none. I have basically most of the...

    Let's assume none. I have basically most of the stdlib, and direct access to everything.
  19. Replies
    15
    Views
    3,751

    Adding a scroll bar in a text mode program

    I'd like to add a scroll bar to scroll up and down through output, sort of like EDIT.COM. Assume no access to system calls, interrupts or otherwise, forget ncurses, and assume direct access to...
  20. Adding nodes to an array at the top & array sorting

    A friend asked me to edit this for him, and quite frankly, I have no idea how to do it. He wants me to make the function add new data to the top of the array, rather than the bottom, and can be...
  21. Thread: Winsock problem

    by Wolf`
    Replies
    1
    Views
    3,237

    Winsock problem

    I'm trying to write a program that simply pings 127.0.0.1 until it is closed to learn more about raw sockets. For some reason, when I compile it in MSVC++ 2008, I get:


    1>------ Rebuild All...
  22. Replies
    13
    Views
    2,002

    That was my thought. The only reason it's...

    That was my thought. The only reason it's supposed to work is because the program is totally unrealistic. After a while of coding my own OS, I figured it would be cool to try a shellcode stack...
  23. Replies
    13
    Views
    2,002

    What do you mean? I can't post anything that has...

    What do you mean? I can't post anything that has to do with shellcoding?
  24. Replies
    4
    Views
    1,123

    Yeah man, if you need help with some homework,...

    Yeah man, if you need help with some homework, ask a specific question. Not 'how do I write this program'. I hate to be like this, but we're here to help you with homework, not do it for you.
  25. Replies
    13
    Views
    2,002

    Same if I put the full path. I think it has...

    Same if I put the full path. I think it has something to do with sprintf();.
Results 1 to 25 of 32
Page 1 of 2 1 2