Re: Re[2]: [AD] Allegro and Visual Basic

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wed, 6 Jun 2001, Guillaume Serre wrote:

> I was just wondering if it was possible to create a type library from
> Allegro, and if it was worth it. If it's the case, we should try to
> automate the allegro.h -> allegro.odl conversion within the build
> process, and use mktyplib.exe which is part of any Visual C++
> distribution (that's the case with V6).

Probably possible, but allegro passes some things around which are not
compatible with VB6, like pointers and function callbacks.

The pointers can probably all be handled by translating the 'structs' into
'Types', and the function callbacks by a person who understands COM
programming in C++ better than I do.

Also, the library does not use the StdCall calling convention.  I not sure
how big a deal it would be to change that.  It may be worth doing, if for
instance, it would make it easier to integrate Allegro with .NET so it
could be used in any language supported by the framework.

The more I look at it, the more I am convinced that Allegro can be used in
Visual Basic almost completely without any serious hacks or kludges.  I'll
look at mktyplib and see if it can help.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/