<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<div>Hello,</div>
<div>"Extern" only for shared-library .so, not for gambas library !</div>
<div>bye</div>
<div>vuott</div>
<p>Il 27.06.2018 11:19 Antonio Teixeira ha scritto:</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px; width:100%"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div dir="ltr">
<div class="gmail_default" style="font-size: small;">Hi everyone,</div>
<div class="gmail_default" style="font-size: small;">I am trying for the first time to make a library and then use her.</div>
<div class="gmail_default" style="font-size: small;">I saw the wiki page about that but I cant to put the library to work.</div>
<div class="gmail_default" style="font-size: small;">I build a library like that:</div>
<div class="gmail_default"><span style="font-size: x-small;"><br /></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><em>Export </em></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><em>Public Sub Main()</em></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><em> Print "Hello world"</em></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><em>End</em></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><em>Public Function test() As String</em></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><em> Return "test"</em></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><em>End </em></span></div>
<div class="gmail_default"><span style="font-size: x-small;"><br /></span></div>
<div class="gmail_default"><span style="font-size: x-small;">Defined as library, and version is 1.0.0</span></div>
<div class="gmail_default"><span style="font-size: x-small;"><br /></span></div>
<div class="gmail_default"><span style="font-size: x-small;">On my program I defined the library in the project/libraries</span></div>
<div class="gmail_default"><span style="font-size: x-small;">and my code to access the function is:</span></div>
<div class="gmail_default">
<div class="gmail_default"><em><br /></em></div>
<div class="gmail_default"><em>Private Extern test() In "zzzzzzz.1.0"</em></div>
<div class="gmail_default"><em><br /></em></div>
<div class="gmail_default"><em>Public Sub _new()</em></div>
<div class="gmail_default"><em> Dim a As String </em></div>
<div class="gmail_default"><em><br /></em></div>
<div class="gmail_default"><em> a = test()</em></div>
<div class="gmail_default"><em> </em></div>
<div class="gmail_default"><em>End</em></div>
<div>I think the "extern" definition isnt correct but I cant find any information about how she must be.</div>
<div>Any help please?</div>
<div>Thanks in advance.</div>
<div>Antonio Teixeira</div>
</div>
</div>
</blockquote>
</body></html>
<br><br/><br/>Con MyOpen hai Giga, SMS e i minuti che vuoi da 3€ al mese, per sempre. Cambi gratis quando e come vuoi e in più hai 10€ di credito omaggio. <a href='http://tisca.li/myopenjun18' target='_blank'>Scopri di più!</a><br/><br/>