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...
Type: Posts; User: Jimage
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...
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;...
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,...
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?
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....
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...
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...
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.
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...
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.
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...