[Gambas-devel] Building Components

Benoît Minisini gambas at ...1...
Fri Jul 2 19:27:13 CEST 2010


>  Hi,
> 
> 
> 
> I am still looking for direction on implimenting components built in
> GAMBAS. I how to I expose the component and how do I link it in to other
> projects. I want to put our business logic into gambas components.
> 
> 
> 
> Thanks,
> 
> Vince Scott
> 

Here is a short summary...

I see two solutions for your problem:

1) Components entirely written in C/C++, with eventually a part written in 
Gambas.

That means that your "business logic" is implemented inside shared libraries, 
and that the Gambas component is linked with these libraries. Some of the 
classes of this component can be written in Gambas.

2) Components written in Gambas, but that used an external shared library.

You write a Gambas project only, and if you need to access the shared library, 
you must use the EXTERN keyword.

In both solutons, your shared library must be packaged indepently of Gambas. 

And there is a little advantage with the second solution: you don't have to 
make a component. You can make a Gambas project that will be used as a 
"library".

The "library" is installed like any other Gambas project, whereas the IDE 
packager at the moment cannot make a package of a component correctly.

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list