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: 103734,fe9dd44acd5462d1 X-Google-Attributes: gid103734,public X-Google-Thread: 10b6ac,fe9dd44acd5462d1 X-Google-Attributes: gid10b6ac,public X-Google-Thread: 103376,fe9dd44acd5462d1 X-Google-Attributes: gid103376,public From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle) Subject: Re: Ada and X/Motif Date: 1997/06/04 Message-ID: <5n4i9t$6i2$1@cnn.Princeton.EDU>#1/1 X-Deja-AN: 247362764 Distribution: inet References: <3394CED4.2BF7@interlog.com> Organization: US Air Force Academy, Dept of Computer Science Newsgroups: comp.lang.ada,comp.windows.x,comp.windows.x.motif Date: 1997-06-04T00:00:00+00:00 List-Id: >If I call any (or all) of the above functions in a separate procedure >and then call this procedure in the main routine, the XStoreColor >function does not store the color in the colormap. There is no error >message, just the function does not do what it is supposed to do. Any >help? Given that you don't mention what X binding you are using, this is very difficult to guess. I'll venture two suggestions from my experience with Win32 bindings. 1) If the binding is yours, you may need to add something like pragma Convention(Stdcall,XStoreColor); 2) You may have forgotten to call some important initialization routine (I had similar behavior under Win32 when I forgot InitCommonControls) --Martin -- Martin C. Carlisle, Computer Science, US Air Force Academy mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html DISCLAIMER: This content in no way reflects the opinions, standard or policy of the US Air Force Academy or the United States Government.