Wrapping C++ libraries (was RE: Future of Euphoria)

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

Matthew Lewis wrote:
> I think I might have some ideas, since I think I've already done some of 
> this. 
> COM stuff is basically the same as C++ (OO).  What are the problems 
> you've
> found?


Thanks for the offer Matt.

I haven't looked at the problem for a few months so I'm a little 
rusty.

I think the basic problem is that the OO way of doing things is 
to sub class all of the objects and create classes that fit your 
particualr application.

eg. to create a form ...

1.  subclass a form object and create a new instance.

2.  The form "initialise" method sets properties for this class and 
then subclasses any controls it requires for this particular form.

3.  The "sub classed" controls "initialise" method set the properties
required for this control.


I hope that makes some sense ...

The non OO way of doing things (like Win32Lib) is:

1. create a form (and set properties as required)

2. Add any particular controls and set properties as required (eg. 
call backs etc).

3. Start WinMain 

4. Wait for and process events


As a said it's been awhile since I looked at it.

I highly suspect my lack of C++ and FOXGUI knowledge is the main 
problem.

I have "thought" about attempting to create a similiar structure of
the initialise methods with Euphoria callbacks ... but I haven't 
really thought through the details.

Basically ... how to change the structure of a highly OO'ed GUI 
library with a message map to a simple ... create, set properties and
process events module like win32lib.

Any ideas would be much appreciared.

Thanks,

Ray Smith
http://rays-web.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu