From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: How to get the mouse position with JEWL?
Date: Thu, 21 Oct 2010 20:24:23 +0300
Date: 2010-10-21T20:24:23+03:00 [thread overview]
Message-ID: <8ibba8FdvvU1@mid.individual.net> (raw)
In-Reply-To: <84fbd137-d7d2-47e2-8cba-58e734d69d10@n26g2000yqh.googlegroups.com>
tolkamp wrote:
> On 21 okt, 18:47, Georg Bauhaus <rm.dash-bauh...@futureapps.de> wrote:
>> On 21.10.10 17:23, tolkamp wrote:
>>
>>
>>
>>
>>
>>> On 21 okt, 00:51, tmo...@acm.org wrote:
>>>> This works for me for Windows
>>>> type Points is record
>>>> x,y : interfaces.c.int;
>>>> end record;
>>>> type bool is new interfaces.c.int;
>>>> function GetCursorPos(point : access points) return bool;
>>>> pragma import(stdcall,GetCursorPos, "GetCursorPos");
>>>> current : aliased points;
>>>> ...
>>>> if getcursorpos(current'access) = 0 then
>>>> -- current now has mouse position
>>>> else -- Windows error
>>> When I include "with interfaces.c.int" the compilation results in
>>> error:
>>> Interface.C.Init is not a predefined library unit.
>> "int" is the name of a type in package Interface.C.
>> "With" that.
>>
>> Georg- Tekst uit oorspronkelijk bericht niet weergeven -
>>
>> - Tekst uit oorspronkelijk bericht weergeven -
>
> Yes, I understand,
I suspect not...
> but how to make the compilation error free?
You should write, as Georg no doubt meant:
with Interfaces.C;
not "with Interfaces.C.Int". You always "with" a package or some other
library unit (stand-alone subprogram), you do not "with" a type, even
though that type is defined in a package.
HTH,
--
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
. @ .
next prev parent reply other threads:[~2010-10-21 17:24 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 9:04 How to get the mouse position with JEWL? tolkamp
2010-10-20 11:42 ` Manuel Collado
2010-10-20 17:20 ` tolkamp
2010-10-20 22:22 ` Manuel Collado
2010-10-20 22:51 ` tmoran
2010-10-21 2:59 ` Jeffrey Carter
2010-10-21 4:08 ` tmoran
2010-10-21 7:31 ` Dmitry A. Kazakov
2010-10-21 19:10 ` tmoran
2010-10-21 19:38 ` Dmitry A. Kazakov
2010-10-22 0:39 ` tmoran
2010-10-22 7:35 ` Dmitry A. Kazakov
2010-10-22 10:10 ` Frank J. Lhota
2010-10-21 15:23 ` tolkamp
2010-10-21 16:47 ` Georg Bauhaus
2010-10-21 17:09 ` tolkamp
2010-10-21 17:24 ` Niklas Holsti [this message]
2010-10-21 20:34 ` tolkamp
2010-10-22 13:55 ` tolkamp
2010-10-22 22:15 ` Manuel Collado
2010-10-23 15:26 ` tolkamp
2010-10-21 21:50 ` Manuel Collado
2010-10-22 10:40 ` tolkamp
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox