Re: {OT} Interesting view on Windows/Linux+Wine
- Posted by Bernie Ryan <xotron at bluefrog.com> Mar 08, 2006
- 682 views
Al Getz wrote: > Bernie: > From what you say Wine may be a pain but X-Windows sounds better. > You're making Lin sound very good! I wonder however, do most > Lin owners also program in some capacity? > Im not sure what XMOTOR is for but it sounds interesting. > Perhaps you can elab. a bit? Al: Most GUIs on Linux are built on top of the X-Windows graphics at the lowest level. At the next level to make of X-Windows programming a little easier is the X Intrinsic toolkit caled Xt. Built on top of the above comes Athena Widgets called Xaw and Xaw3d. Also Built on top of the above comes Motif Widgets called Xm. My XMOTOR library allows a Euphoria programmer to: 1. Program using X-Window only. 2. Program using Xt. 3. Program using Athena Widgets. 4. Program using Motif Widgets. 5. Program using all of the above with a single library which contains "C" string and structure handling. 6. The motor.eu library is also the same library that does windows programming in XMOTOR. I think if anyone is ambious enough they should be able to write something like the win32lib or WndClass that is cross-platform. Another advantage of MOTOR is that is much easier to wrap a DLL or SO. All you have to do to wrap a DLL. 1: Declare a library. library("somename.dll") 2: Follow that with the list function declarations. -- declare somefunction that has 5 parameters -- that returns a signed type. declare("somefunction",5,s) -- a procedure that has no parameters declare("someprocedure",0,n) ETC... Then your ready to use the DLL or SO. You can setup the constants and structures with motor as you need them. Download windows version WMOTOR and you will see what I mean. In WndClass the declares could be seperate in each of your include modules. Bernie My files in archive: WMOTOR, XMOTOR, W32ENGIN, MIXEDLIB, EU_ENGIN, WIN32ERU, WIN32API Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan