Mail Archives: djgpp/2002/02/18/07:40:45
And if you try:
install_int ((void (*)())fps,1000);
LOCK_FUNCTION ((void (*))fps);
????
Does it work?
> : LOCK_FUNCTION (fps);
> : LOCK_VARIABLE (last_fps);
> : LOCK_VARIABLE (frame_counter);
> : install_int (fps,1000);
> : }
>
> : Error messages I get:
> : test.h:29: cannot convert `void (*)(...)' to
> `void*' for argument `1' to
> : `int_go32_dpmi_lock_code(void*, long unsigned
> int)'
> : test.h:32: cannot convert `void (*)(...)' to `void
> (*)()' for argument `1'
> : to `int install_int(void (*)(), long int)'
>
> Try using C instead of C++. Allegro is C, not C++,
> unless it has
> changed.
>
>
> Right,
>
> MartinS
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicación instantánea gratis con tu gente.
http://messenger.yahoo.es
- Raw text -