[Gambas-user] User library

Jussi Lahtinen jussi.lahtinen at gmail.com
Wed Jun 27 22:48:19 CEST 2018


Project properties --> Libraries --> Add


Jussi

On Wed, Jun 27, 2018 at 12:19 PM, Antonio Teixeira <
antonio.j.teixeira at gmail.com> wrote:

> Hi everyone,
>
> I am trying for the first time to make a library and then use her.
> I saw the wiki page about that but I cant to put the library to work.
> I build a library like that:
>
> *Export *
> *Public Sub Main()*
> *  Print "Hello world"*
> *End*
> *Public Function test() As String*
> *  Return "test"*
> *End *
>
> Defined as library, and version is 1.0.0
>
> On my program I defined the library in the project/libraries
> and my code to access the function is:
>
> *Private Extern test() In "zzzzzzz.1.0"*
>
> *Public Sub _new()*
> *  Dim a As String *
>
> * a = test()*
>
> *End*
>
> I think the "extern" definition isnt correct but I cant find any
> information about how she must be.
>
> Any help please?
>
> Thanks in advance.
>
>
> Antonio Teixeira
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180627/6b38659f/attachment.html>


More information about the User mailing list