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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,be6e28f854440947 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!k22g2000yqh.googlegroups.com!not-for-mail From: tolkamp Newsgroups: comp.lang.ada Subject: Re: How to get the mouse position with JEWL? Date: Thu, 21 Oct 2010 08:23:52 -0700 (PDT) Organization: http://groups.google.com Message-ID: <86bfa3ba-f67f-4ee2-95f6-c0c66ad08207@k22g2000yqh.googlegroups.com> References: NNTP-Posting-Host: 62.163.210.190 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1287674632 12395 127.0.0.1 (21 Oct 2010 15:23:52 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 21 Oct 2010 15:23:52 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k22g2000yqh.googlegroups.com; posting-host=62.163.210.190; posting-account=nZAcngoAAACcfYM9wDw3w9Z1XR3bObfs User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.1; .NET4.0C),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:15628 Date: 2010-10-21T08:23:52-07:00 List-Id: On 21 okt, 00:51, tmo...@acm.org wrote: > This works for me for Windows > =A0 =A0 type Points is record > =A0 =A0 =A0 x,y : interfaces.c.int; > =A0 =A0 end record; > =A0 =A0 type bool is new interfaces.c.int; > =A0 =A0 function GetCursorPos(point : access points) return bool; > =A0 =A0 pragma import(stdcall,GetCursorPos, "GetCursorPos"); > =A0 =A0 current : aliased points; > =A0 =A0 ... > =A0 =A0 =A0 if getcursorpos(current'access) =3D 0 then > =A0 =A0 =A0 =A0 -- current now has mouse position > =A0 =A0 =A0 else -- Windows error When I include "with interfaces.c.int" the compilation results in error: Interface.C.Init is not a predefined library unit. How can I add this to the library?