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,6c7be346cfa17c37,start X-Google-Attributes: gid103376,public From: Dale Stanbrough Subject: Ada/Motif problem... Date: 1996/08/27 Message-ID: <4vupg6$ljf@goanna.cs.rmit.edu.au>#1/1 X-Deja-AN: 176758134 distribution: world content-type: text/plain; charset=ISO-8859-1 x-xxmessage-id: organization: Royal Melbourne Institute of Technology mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-08-27T00:00:00+00:00 List-Id: Hi, One of our students has run into problems writing a Motif routine. The callback data is to be a string as follows.. Xt.Intrinsic.XtAddCallback( pb, Motif.xmstrdefs.XmNactivateCallback, hello_dialog_pkg.popup'access, "Hello World"); I've tried using unchecked_conversion from an access to all string to XtPointer, but Gnat complains (quite rightly) about these pointer types being of different sizes. Any inspiration on how to pass Ada strings as callback data in Motif? Here's the subprogram declaration... procedure XtAddCallback( widget : Xt.Intrinsic.Widget; callback_name: X.Strings.const_charp; callback : XtCallbackProc; closure : XtPointer); Dale