From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7e1b1b0836bf8b48 X-Google-Attributes: gid103376,public From: mcc@entropy.cs.princeton.edu (Martin C. Carlisle) Subject: Re: API-timer... Date: 1999/07/27 Message-ID: <7nke47$87t$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 505786331 References: <2461CF0DA7DBD211B07300805F921CBC0203768D@kuumex03.barco.com> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada Date: 1999-07-27T00:00:00+00:00 List-Id: In article <2461CF0DA7DBD211B07300805F921CBC0203768D@kuumex03.barco.com>, SEV, AV Guest 2 wrote: >I would like to use an API-timer in my future projects... the following >source compiles but the executable doesn't do what I want... >Has anyone experience with this... I've not used that particular call before, but I'm pretty sure you'll have to make sure your procedure is using the pragma Convention(Stdcall,...) Using an unchecked conversion prevents the compiler from telling you things like this! Get rid of that and use procedure'access instead. (Probably should be a function). I use a timer w/o a callback (using messages) in AdaGIDE. You can get the source from http://wuarchive.wustl.edu/languages/ada/swtools/adagide --Martin -- Martin C. Carlisle, Asst Prof of Computer Science, US Air Force Academy carlislem@acm.org, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standards or policy of the US Air Force Academy or the United States Government.