<div dir="ltr"><div dir="ltr">Hi Hans,<br>I attach the Dynamic libraries folder that contains the Mathematical Library Project that initially does only two operations (sum and subtraction).<br>With the method already explained above I use the library in TestMat.<br>I create the TestMat executable (see LibTwo folder) that works using the library (if present in the same folder).<br>Extending the Mat library with two other operations (multiplication and division), the TestMat executable updates automatically (see LibFour folder).<br><br>Regards<br>Gianluigi<br></div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno dom 21 ott 2018 alle ore 22:31 Gianluigi <<a href="mailto:bagonergi@gmail.com">bagonergi@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr">Hans, Lee,<br>this attached code, here works.</div><div dir="ltr"><br></div><div>Regards</div><div>Gianluigi<br></div></div><br><div class="gmail_quote"><div dir="ltr">Il giorno dom 21 ott 2018 alle ore 20:48 T Lee Davidson <<a href="mailto:t.lee.davidson@gmail.com" target="_blank">t.lee.davidson@gmail.com</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Actually, "/usr/lib/gambas3/" would be the *system* path where all the components are stored. You get that particular path<br>
string with Component.Path.<br>
<br>
When you make an executable of a library (in this case resulting in "myLibrary.gambas"), a copy is also automatically placed in<br>
the *user* path:<br>
<Desktop.DataDir>/gambas3/lib/<vendor_name>/<file_name> (filename in this case is "myLibrary:0.0.gambas").<br>
<br>
<br>
___<br>
Lee<br>
<br>
<br>
On 10/21/18 10:42 AM, Gianluigi wrote:<br>
> As suggested by Benoit and Jussi, the Library should be copied inside the project, then in Sub Open you writs:<br>
> <br>
>   Dim sPath As String<br>
>   sPath = "/usr/lib/gambas3/myLibrary:0"<br>
>   Component.Load(sPath)<br>
> <br>
> and with help from this lesson [0], completes the project.<br>
> <br>
> Regards<br>
> Gianluigi<br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>
</blockquote></div>