I need some help,
Members - Reputation: 122
Posted 16 October 2001 - 07:03 AM
Members - Reputation: 383
Posted 16 October 2001 - 07:08 AM
should do it. if not, then do
fread((void) data, width * height * 3, 1, file );
bascially, "void *" means it just wants a memory address, and it couldnt care less what type of memory it points to, so yeah, just shove (void*) or (void) infront of "data" and it will work.
Members - Reputation: 1087
Posted 16 October 2001 - 11:06 AM
Try to stay away from using the Win32 typedefs (like BYTE) in code that doesn''t have anything to do with the Win32 API. I guess it is just a pet peeve of mine.
[Resist Windows XP''s Invasive Production Activation Technology!]