Mail Archives: djgpp/1998/06/29/07:45:45
>
>int main()
>{
>
> allegro_init();
> set_color_depth(8);
> set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0);
> text_mode(0);
> char *c;
> int p;
> p=3;
> itoa(p, c, 10); // call frame traceback here
>
> textout(screen, FONT, c, 10, 10, 15); // parse error before ',' here
>}
Well... this should be quite obvious, FONT should be font, FONT is the
struct, used to declare for example the default "font". As for the other
error... I don't get it. This piece of code compiles fine, then displays "3"
and returns to my IDE without too much trouble. Sorry, can't help you there.
Daniel Faure
- Raw text -