delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/02/18/07:40:45

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Message-ID: <20020218123955.90091.qmail@web20808.mail.yahoo.com>
Date: Mon, 18 Feb 2002 13:39:55 +0100 (CET)
From: =?iso-8859-1?q?cesar=20tejeda?= <cesar_tejeda_her AT yahoo DOT es>
Subject: Re: Allegro Timers
To: djgpp AT delorie DOT com
In-Reply-To: <a4ig4s$sis$1@antares.lu.erisoft.se>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019