Search:

Type: Posts; User: Hawkin

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    12,535

    Wow I got a good portion of dumbness :D Thanks,...

    Wow I got a good portion of dumbness :D
    Thanks, this is the big mistakes, I totally didn't think about it.

    Well, day ended, I've learned couple of things. Thanks guys!
  2. Replies
    14
    Views
    12,535

    Oooh in the beginning I tried to convince myself...

    Oooh in the beginning I tried to convince myself that it's logical for it to be *array[i] and tried it. The result was a crashing program. I would have never found out that it must be (*array)[i] :(...
  3. Replies
    14
    Views
    12,535

    int foo(int** array) { int i; for(i = 0; i

    int foo(int** array)
    {

    int i;
    for(i = 0; i < 8; i++)
    {

    int *temp = malloc(0);
    temp = (int*) realloc(*array, (i+1)*sizeof(int));
    if(temp != NULL) *array = temp;
  4. Replies
    14
    Views
    12,535

    laserlight: And exactly there is my problem in...

    laserlight: And exactly there is my problem in understanding.


    int *a = malloc(0);

    int foo(int** array)
    {

    int *temp = malloc(0);
    temp = (int*) realloc(array, somenumber*sizeof(int));
  5. Replies
    14
    Views
    12,535

    I have another issue... int *a = malloc(0);...

    I have another issue...


    int *a = malloc(0);

    int foo(int* array)
    {

    int *temp = malloc(0);
    temp = (int*) realloc(array, somenumber*sizeof(int));
  6. Replies
    14
    Views
    12,535

    Thanks for the answer. I just found in some of...

    Thanks for the answer.

    I just found in some of my old code that I had already solved this problem.
    As you said, I may only do it with a new pointer.

    I also saw that I had to live with the...
  7. Replies
    14
    Views
    12,535

    Casting short to char*

    Hi fellows!

    I am dealing with raw data and want to interpret data within an array differently.


    unsigned char data[] = "\x99\xA2\x1E\x00\x6B\x00\xE4\x03\x00\x00\x00..."
    printf("%hu\n",...
  8. Replies
    18
    Views
    2,433

    Hmm, we talk not in the same direction I guess....

    Hmm, we talk not in the same direction I guess. The point here is not how to code the minimizing of active windows, but how to execute it. Your idea is exactly my approach, but how would you run the...
  9. Replies
    18
    Views
    2,433

    Okay... where to start... First of all to all...

    Okay... where to start...

    First of all to all your Aero and "dirty fix" suggestions: In my previous post I have told that I am running XP, so I don't benefit from those tricks.

    Second I only...
  10. Replies
    18
    Views
    2,433

    It's not what I wanted. I want to proxy one...

    It's not what I wanted. I want to proxy one single dll of one single already active program. This is only one dll in one folder, which will be loaded only once ;) My solution is a global hotkey for...
  11. Replies
    18
    Views
    2,433

    CommonTater: I am using proxy dlls for some...

    CommonTater: I am using proxy dlls for some executables for months, which work absolutely perfect (on XP that is). It was the last part of hooking that I needed to learn, because this solves many...
  12. Replies
    18
    Views
    2,433

    Implementing short macros for windows®

    Hey there!

    I thought about programming helpful macros for windows, well actually I only had one idea till now, that is writing a function that minimizes all windows and shows the desktop. It's...
  13. Because the code is old and long where I do many...

    Because the code is old and long where I do many other things. Working with data as well as working with ascii chars and I don't want to check all the working code again ;)



    That's exactly what...
  14. I want to avoid memcmp because the locations I...

    I want to avoid memcmp because the locations I want to check are random and not in a row. (Sometimes I want to check byte 1,2,3,4 but most often I want to check 1,2,9,10,23,24,25,26 which would mean...
  15. Okay I see that the warnings occur before...

    Okay I see that the warnings occur before comparing a signed char with 0xaf and 0xb0.

    I always thought, when I write 0xFF or \xFF, it doesn't matter if a number is treated as signed or unsigned...
  16. I have read this internet page before posting. ...

    I have read this internet page before posting.

    And yes, the compiler writes this error for line 140 and 146. It's these two lines that I highlighted.

    I wonder so much because I use the same...
  17. [Warning] comparison is always false due to limited range of data type

    Hi there!

    Really, really strange, I have no clue why I get two warnings. Look at the code yourself, I splitted the lines to see where exactly the compiler (gcc) shouts:



    int func(char *buf)...
  18. Thread: Byte Decryption

    by Hawkin
    Replies
    3
    Views
    825

    I just realized my own how dumb I was :D Thanks...

    I just realized my own how dumb I was :D
    Thanks for your answer, of course I can just use an array, oh my god!

    Yes, as I wrote, it is just byte decryption.
  19. Thread: Byte Decryption

    by Hawkin
    Replies
    3
    Views
    825

    Byte Decryption

    Hi all!

    I am doing some packet decryption where the encryption method is unknown, so I just have the raw data.

    I thought that receiving and decrypting large files on the fly is rather...
  20. Replies
    4
    Views
    1,801

    char *tmp = malloc(newlength!=0?newlength:1); ...

    char *tmp = malloc(newlength!=0?newlength:1);

    About realloc I know, but thanks. I am too lazy to implement any security in raw code. That will be the task when my snippet works and I will put it...
  21. Replies
    3
    Views
    926

    rand()%21 - 10

    rand()%21 - 10
  22. Replies
    4
    Views
    1,801

    memcpy not doing its job

    Hi guys!

    I have a problem with memcpy. I have a memory location with 3 strings, all 0 terminated and want to shorten it to 2 strings.

    Example:

    Tree\0House\0Banana\0
    becomes
    House\0Banana\0
  23. Replies
    4
    Views
    3,832

    Thank you for the input. I (finally) added both...

    Thank you for the input. I (finally) added both methods to my program to find them if I need them in another program also. Yet I don't know why sizeof(pitems)/sizeof(pitems[0]) wouldn't work if I...
  24. Replies
    10
    Views
    7,891

    Sorry for intruding to your thread. I would like...

    Sorry for intruding to your thread. I would like to know what you all suggest to use for just sending POST requests and receiving server answers. Using Windows, DevC++, C.

    I want it to be a simple...
  25. Replies
    4
    Views
    3,832

    Counting number of strings in an array

    Hey there!

    I have an array of strings where I declare all strings like this:

    string[2] = "\xFB\x9D";
    to represent 2 chars in one variable. All tend to be only 2 bytes long.


    char a[2] =...
Results 1 to 25 of 68
Page 1 of 3 1 2 3