Search:

Type: Posts; User: krappykoder

Page 1 of 7 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,450

    Thanks SMurf, that got it.

    Thanks SMurf, that got it.
  2. Replies
    3
    Views
    1,450

    Weird mouse cursor

    Just started to write my little freecell game and came across a weird glitch. Whenever I start the app I get a busy cursor (the hourglass) until I move my mouse outside the window. Any idea what's...
  3. Replies
    3
    Views
    1,618

    I don't see why it shouldn't be, considering the...

    I don't see why it shouldn't be, considering the fact I CAN WRITE TO IT
  4. Replies
    3
    Views
    1,618

    Console Input

    HANDLE c;
    c = CreateConsoleScreenBuffer(GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ, NULL, CONSOLE_TEXTMODE_BUFFER, NULL);
    SetConsoleActiveScreenBuffer(c);
    ..
    ReadConsole(c, gpb, 1, (DWORD...
  5. Replies
    7
    Views
    3,890

    That'd be great if this were acctualy a windows...

    That'd be great if this were acctualy a windows console, and not a command line app
  6. Replies
    7
    Views
    3,890

    gotoxy alternative?

    I just spent about an hour looking for the name of the function to move the cursor only to find out my compiler (mingw) doesn't acctualy *have* it :/
    Anyone know an alternative?
  7. Replies
    9
    Views
    1,467

    *mine* uses strcats, thats the problem :P The...

    *mine* uses strcats, thats the problem :P
    The buffer is generated via them.
    I might as well post the code


    for(int base=0;base<=0xCFF0;base+=0x10){
    sprintf(temp,"%04X",base);
    ...
  8. Replies
    9
    Views
    1,467

    I'm not changing it, i'm filling a buffer with...

    I'm not changing it, i'm filling a buffer with 200k of data when i call CreateWindow("EDIT".buffer....);
    Which takes about 30 seconds, so what i'd like to do, is fill 20 lines like this
    ---------...
  9. Replies
    9
    Views
    1,467

    Displaying them is fine, but it bogs down the...

    Displaying them is fine, but it bogs down the system ALOT if i fill my whole edit control.

    What i want is to only fill 20 lines, in the middle of the edit. (You can't see the text offscreen so why...
  10. Replies
    9
    Views
    1,467

    dynamic edit control

    I have an edit control and i estimate it does a few thosand strcat and copies and is about 200k long, is there a way i can dynamicaly fill it, say 20 lines either side of where the scroll bar points...
  11. Replies
    4
    Views
    1,470

    Cheers that worked, i just tried like 4 pieces of...

    Cheers that worked, i just tried like 4 pieces of example code i found on google with no success.
  12. Replies
    4
    Views
    1,470

    wParam Handle to the device context for the...

    wParam
    Handle to the device context for the static control window.
    lParam
    Handle to the static control.

    Could you explain what that acctualy means? It's going straight over my head...
  13. Replies
    4
    Views
    1,470

    EDIT styles

    Does anyone know the styles I could use to create an EDIT control that the user cannot change, without greying it out like ES_READONLY does?
  14. Replies
    1
    Views
    950

    omg i think in my haste i forgot to acctualy call...

    omg i think in my haste i forgot to acctualy call the function i made :X
    I added a createthread and it still doesn't draw, oh dear
    CreateThread returns error 87 whatever that is


    I'm going...
  15. Replies
    1
    Views
    950

    functions/passing problem

    The stretchDibBits nearish the bottom doesn't blit anything to the screen like it was just before i moved all my code around, i'm thinking all the pointerness being passed between the functions not...
  16. Thread: sprintf

    by krappykoder
    Replies
    12
    Views
    2,690

    If you really wanted to know what i was working...

    If you really wanted to know what i was working on, it's a gameoy decompiler which decodes 0x78FA into:
    ld hl, sp-$06
    with a range of:
    ld hl, sp-$7F to ld hl, sp+$80
    which means i need a signed...
  17. Thread: sprintf

    by krappykoder
    Replies
    12
    Views
    2,690

    It *needs* to be in hex, it'd look out of place,...

    It *needs* to be in hex, it'd look out of place, several other hundered numbers are in hex :P
  18. Thread: sprintf

    by krappykoder
    Replies
    12
    Views
    2,690

    sprintf(,"+%02X",) prints +FA..i want -06 any way...

    sprintf(,"+%02X",) prints +FA..i want -06 any way to convert it or add to the sprintf?
    It's a step in the right direction though. Stupid signed numbers..
  19. Thread: sprintf

    by krappykoder
    Replies
    12
    Views
    2,690

    Isn't there a way to do it using those odd ?...

    Isn't there a way to do it using those odd ? things where you have 2 outcomes like an If

    [edit] I found how how to do the + and - using sprintf, now i just need to let it handle signed hex...
  20. Thread: sprintf

    by krappykoder
    Replies
    12
    Views
    2,690

    sprintf

    I have a char with 0xFA in it, and i want the program to print -$06 (funny hexadecimal syntax) i was wondering if this can be achieved in sprintf or if i'll need other crap, and if it can be done in...
  21. Thread: Drawing

    by krappykoder
    Replies
    5
    Views
    1,798

    Yea sure, some template code would rock, sorry...

    Yea sure, some template code would rock, sorry for the lagged responce i had to sleep :P
  22. Thread: Drawing

    by krappykoder
    Replies
    5
    Views
    1,798

    i recommend making the LCD *FIRST*. i made the...

    i recommend making the LCD *FIRST*.
    i made the same mistake, i programmed about 20 opcodes and debugged them all, then i realised by that time that half the code needed to be rewritten for the LCD...
  23. Thread: Drawing

    by krappykoder
    Replies
    5
    Views
    1,798

    Drawing

    I'm making a gameboy emulator in the same stlye as visual boy advance (normal windows gui with a full width and height area with the video)
    i was wondering how i could achieve fast results, as using...
  24. Thread: 100 cpu

    by krappykoder
    Replies
    1
    Views
    946

    100 cpu

    i've noticed that using peekmessage is just like using while(1) and totaly consumes the cpu, what's the best delay to put into the loop?
    I was thinking sleep(0); what do you guys think?
  25. Replies
    15
    Views
    2,399

    The check it against a list of used serials is...

    The check it against a list of used serials is deffinatly a plausible option, alot of online games are using it nowadays, but if you have 7000 players, that might mean 7000 keys, and if they are all...
Results 1 to 25 of 154
Page 1 of 7 1 2 3 4