On 9/18/18 6:32 AM, Richard Hainsworth wrote:
Have you looked at the documentation for nativecall? It has a tutorial example on how to access a c function from a standard library.

I wrote that little bit. It should answer most of your questions.

Richard

Hi Richard,

Yes I did read the documentation, but it was months ago.  Have
you updated it?

I sometimes will pick out a difficult problem
as an exercise to teach me how to use things.
Just dive in.

So far I have got GetXDisplay to work.  XGetWindowAttributes
seized up my computer and I had to press POR (power on reset).
So, I have erased what I did so I would not accidentally run
it again and seize up again.

So I though I would try again, but on asking the "C" guys
what was going on with the call.  They told me that X11 calls are
notoriously difficult to access, even from "C".  So I am giving up
again.  There will be other problems to torment me.  And I
am liking GDM better than X11 anyway, so I should put my efforts
there instead.

By the way, I noticed that the Xlib example for XGetWindowAttributes
left a ton of stuff off:

$ x-windows-list.pl6
00 0xa044fe       xfce4-panel - xfce4-panel
01 0xa044fb       xfce4-panel - xfce4-panel
02 0xa03aab       xfce4-panel - xfce4-panel
03 0x3800106      firefox - Firefox
04 0x3e000c6      thunderbird - Thunderbird
05 0x600122       xfwm4 - xfwm4
06 0x600141       <> - <>
07 0x600142       <> - <>
08 0x600143       <> - <>
09 0x600144       <> - <>
10 0x6008a4       <> - <>
11 0x6008f6       <> - <>
12 0x6008cd       <> - <>
13 0x611e48       <> - <>
14 0x611cb7       <> - <>
15 0x600d68       <> - <>
16 0x60b8af       <> - <>
17 0x6009b4       <> - <>

So apparently, he had issues with the call too.

Anyway, I will concentrate on GDM instead.  And
need to stop procrastinating on my Federal Taxes.

Thank you for the write back,
-T

Reply via email to