Re: wxEuphoria

new topic     » goto parent     » topic index » view thread      » older message » newer message

On Mon, Feb 10, 2003 at 11:43:18AM -0500, Matthew Lewis wrote:
> I finally got wxWindows (v2.29)--as a DLL--working with Euphoria.  I've
> ported the fractal demo that comes with the wxWindows source.  It's up on my
> page:
> 
> http://www14.brinkster.com/matthewlewis/projects.html
> 
> There are 3 files:
> wxEuphoria.zip  -- My source code
> wx22_9d1.zip    -- DLL file 1
> wx22_9d2.zip    -- DLL file 2

I've downloaded your sources and am hacking as we speak. ;]

> 
> Unfortunately, Brinkster doesn't allow files greater than 1Mb (at least for
> us cheapskates with the free accounts).  Also, my bandwidth is limited to
> 16Mb per day, so if you experience trouble, it may be that the limit has
> been reached.  I split the DLL using PatRat's splitter utility.  In order to
> get the DLL assembled, you'll need to unzip everything into a directory, and
> then run install.ex.
> 

> I've included a copy of fptr.e with the code.  This new copy is required in
> case others have the version that's been with EuCOM.  I've cleaned it up a
> bit and added some things, made it easier to use.  I'll probably be
> releasing it on its own here, soon.
> 

Linux does C calls the cdecl way, not sure about C++ calls (I didnt finish
compling wxWindows yet (its been 16 hours so far) so I didn't get to test it
yet).

> But now I need to make some decisions, and ask for some help. :)  Jim Brown,
> I think you volunteered for helping on the port to Linux, right. :)  Beyond
> that, there are a lot of things to think about before the library gets
> coded.  
> 
> I'm currently leaning towards doing things in a win32lib'ish manner, rather
> than a wxWindows/C++ manner (which is how the demo is written), by which I
> mean:
> 
> win32lib:
> include win32lib.ew
> -- create stuff
> -- event handlers, etc
> WinMain()
> 
> wxWindows:
> include wxEuphoria.e
> -- event handlers, etc
> procedure init()
> 	-- create stuff
> end procedure
> WxMain() -- your init routine is called from here
> 
> David C, you probably have some thoughts about this.  In this respect, I
> think wxBasic works sorta like win32lib (big surprise :).  Of course, there
> will be lots of other details, like how to manage event handling, and,
> obviously, making it all really cross platform.
> 

Just Some Notes:

for cplusplus.e,

dlopen(x, or_bits(#001, #100)) is the same as LoadLibrary(x)
dlclose(x) is the same as FreeLibrary(x)
dlsym(x, y) is the same as GetProcAddress(x, y)

in wxEuphoria.e,

user32, xPeekMessage, etc. seem not to be needed. Why were they there in the
first place?

those are the only 2 files i've looked at, besides fptr.e

and, afai can tell, fptr.e's thiscall routines should work just fine
... I think.
However, I have not had the chance to test it yet, as I've ready said.

> Matt Lewis

jbrown

> 
> 
> 
> TOPICA - Start your own email discussion group. FREE!

-- 
 /"\  ASCII ribbon              | 
 \ /  campain against           | Linux User:190064
  X   HTML in e-mail and        | Linux Machine:84163
 /*\  news, and unneeded MIME   |

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu