Search:

Type: Posts; User: Jimage

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    747

    Derived Constructor Question

    Is there a cleaner way to call a class's constructor when declaring a class derived from it without having to redeclare all its parameters?

    So far this is the most suitable solution I've figured...
  2. Replies
    3
    Views
    1,990

    I'd completely forgotten about unions. Unless I'm...

    I'd completely forgotten about unions. Unless I'm missing something, which is possible, it wouldn't be a problem...

    Here's how the structs presently look:

    typedef struct sGFX_ENTRY
    {
    int n;...
  3. Replies
    3
    Views
    1,990

    Generic linked list function

    I have three types of linked list in a program:

    GFX_ENTRY* gfx_ls;
    GFX_ENTRY* gfx_le;
    TILEDEF* tile_ls;
    TILEDEF* tile_le;
    SPRITEDEF* sprite_ls;
    SPRITEDEF* sprite_le;

    Obviously,...
  4. Thread: Libary Trouble

    by Jimage
    Replies
    3
    Views
    901

    Thanks. Specifying its location worked. How...

    Thanks. Specifying its location worked.

    How would I go about getting it to link via a simple -jlib or -ljlib flag at the command line instead of its entire path?
  5. Thread: Libary Trouble

    by Jimage
    Replies
    3
    Views
    901

    Libary Trouble

    I'm building a library based on Allegro for my commonly used code. The compile works, but when the linker kicks in I'm given an error message that one of the functions it contains cannot be found....
  6. Thread: Global enum?

    by Jimage
    Replies
    2
    Views
    8,146

    Global enum?

    Is it possible to make an enum statement avail its contents across all source files in a multi-file C project, or is it necessary to just use them within a .h file and localise their use as much as...
  7. Replies
    3
    Views
    1,124

    Well that didn't help all that much. The win32...

    Well that didn't help all that much. The win32 example won't compile in MinGW, and I'm not trying to search for a specific file within a directory anyway.

    What I'm aiming at is a window that...
  8. Replies
    3
    Views
    1,124

    Ah. Damn, what a n00bish thing to overlook. I...

    Ah. Damn, what a n00bish thing to overlook. I guess I wasn't expecting the FAQ to be that comprehensive. *shrugs* Well, thanks for that. Now I have a starting point.
  9. Replies
    3
    Views
    1,124

    File Navigation Interface?

    I'm looking for a way to Browse the HDD, but I don't know how to read the contents of a directory. I'm sure there must be a function in the C library there somewhere, but so far I haven't been able...
  10. Replies
    3
    Views
    2,019

    Thankyou! Switched "r" to "rb" and it works...

    Thankyou! Switched "r" to "rb" and it works beautifully. I hadn't realised there was a separate binary mode. Amazing what difference one character can make.
  11. Replies
    3
    Views
    2,019

    getc() says $1A = EOF! Wtf?

    I've just spent a few hours trying to work out why my level editor wasn't loading certain level files properly. After a certain point, everything byte starts returning EOF, -1.

    Turns out it was...
Results 1 to 11 of 11