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...
Type: Posts; User: Wolf`
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...
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...
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...
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...
I see, thanks, works now.
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,...
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...
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...
Thanks a ton!
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&)’...
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...
I understand the concept of a buffer, thank you. Never mind, I'll go elsewhere.
Kind of hard when it's a hexdump output that you create on the fly...
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.
I can grab the keystroke, my point is how to repaint the screen? How do I store what was previous, etc.
How can I scroll up and down with the arrow keys is my point, like EDIT.COM?
Listen, I have direct access, because I wrote the kernel. This is my point.
Let's assume none. I have basically most of the stdlib, and direct access to everything.
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...
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...
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...
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...
What do you mean? I can't post anything that has to do with shellcoding?
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.
Same if I put the full path. I think it has something to do with sprintf();.