Search:

Type: Posts; User: Drahcir

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    970

    Fatal Error Handling

    I'm normally a POSIX programmer but I'm using the Windows API for this project, which is the first time that I've ever used it.

    I'm kind of confused about what's the correct and/or best way to...
  2. Thread: Return Values

    by Drahcir
    Replies
    4
    Views
    1,140

    Return Values

    I'm really sorry if this is a dumb question but ever since I started using C, I never understood the reason why functions are defined with much larger values then required.

    I'm planning to write...
  3. Replies
    8
    Views
    7,994

    Thanks for you help Salem. I've expected the...

    Thanks for you help Salem. I've expected the function to return the total bytes read.
  4. Replies
    8
    Views
    7,994

    :confused: That code wasn't complete. I only...

    :confused: That code wasn't complete. I only posted the structure and function because that's all I having trouble with. The code can compile correctly.

    The fread() function is what I'm was having...
  5. Replies
    8
    Views
    7,994

    The code is correct on my end. :confused: I have...

    The code is correct on my end. :confused: I have 7 images in my file. Which means when Block.Number is loaded, it should be set to 6 (just like the raw byte in the file). It's set this way since this...
  6. Replies
    8
    Views
    7,994

    for (Number = 0; Number Number;...

    for (Number = 0; Number <= Block->Number; Number++)
    That the loop to load each tile. To allow more images in a GraphicsBlock, Block.Number starts at zero. The macro GraphicsNumber(Block) returns the...
  7. Replies
    8
    Views
    7,994

    Game Pointer Trouble?

    I currently writing a game for DOS to help me learn the BIOS interrupts for the VGA. I'm having trouble loading graphics from my file format. The code compiles without any warnings. I'm using DJGPP...
Results 1 to 7 of 7