ich poste einfach mal was mein compiler sagt. vllt weißt du ja, warum es bei dir klappt und bei mir nich...

file1=malloc(size);
36 D:\Dev-Cpp\main2.cpp invalid conversion from `void*' to `unsigned char*'

file2=malloc(504);
40 D:\Dev-Cpp\main2.cpp invalid conversion from `void*' to `unsigned char*'

sprintf(buf,"unsigned char picture[]={");
63 D:\Dev-Cpp\main2.cpp initializing argument 1 of `int sprintf(char*, const char*, ...)'


von dem typ stehen da noch 5 weitere meldungen.