[Gambas-user] Gambas-user Digest, Vol 25, Issue 17

Wellington de Souza Pinto wspinto at ...1405...
Tue Jun 10 15:00:29 CEST 2008


Hi Adrian!

Use this way.

Extern suma(a as float, b as float) As float In "your_library_name"

? suma(10,15)
> 25

Reguards,

Souza, Wellington

> Message: 1
> Date: Fri, 6 Jun 2008 10:31:37 -0400
> From: Adrian Mart?nez Vargas <amvargas at ...1922...>
> Subject: [Gambas-user] call shared library written in C++
> To: <gambas-user at lists.sourceforge.net>
> Message-ID: <001b01c8c7e2$077bf680$21141c0a at ...1923...>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> 	reply-type=original
>
> Hello mail list
>
>
>
> If I have a shared library written in C++ that look like this:
>
>
>
> // suma.cc:
>
>        extern "C"
>
>            {
>
>                float suma (float a, float b)
>
>                  {
>
>         return a+b;
>
>                  }
>
>             } // extern "C"
>
>
>
> haw to call the function suma(a,b) from gambas?
>
>
>
> my best
>
> Adrian

___________________________________________________________________________________
Para fazer uma ligação DDD pra perto ou pra longe, faz um 21. A Embratel tem
tarifas muito baratas esperando por você. Aproveite!





More information about the User mailing list