<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>According to gambas wiki <br>
</p>
<strong style="color: rgb(64, 64, 64); font-family: sans-serif;
font-size: medium; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; letter-spacing: normal;
orphans: 2; text-align: start; text-indent: 0px; text-transform:
none; white-space: normal; widows: 2; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(248, 248,
248); text-decoration-style: initial; text-decoration-color:
initial;">If the function returns a<span> </span><code
style="display: inline; white-space: nowrap;">struct ABC *</code></strong><span
style="color: rgb(64, 64, 64); font-family: sans-serif; font-size:
medium; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(248, 248, 248); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">, then you mimic the structure<span> </span></span><code
style="display: inline; color: rgb(64, 64, 64); font-style:
normal; font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(248, 248, 248); text-decoration-style:
initial; text-decoration-color: initial; white-space: nowrap;">ABC</code><span
style="color: rgb(64, 64, 64); font-family: sans-serif; font-size:
medium; font-style: normal; font-variant-ligatures: normal;
font-variant-caps: normal; font-weight: 400; letter-spacing:
normal; orphans: 2; text-align: start; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(248, 248, 248); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;"><span> </span>declaration somewhere, and
you declare the return value as<span> </span></span><code
style="display: inline; color: rgb(64, 64, 64); font-style:
normal; font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none; widows: 2;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(248, 248, 248); text-decoration-style:
initial; text-decoration-color: initial; white-space: nowrap;">Struct
ABC</code><span style="color: rgb(64, 64, 64); font-family:
sans-serif; font-size: medium; font-style: normal;
font-variant-ligatures: normal; font-variant-caps: normal;
font-weight: 400; letter-spacing: normal; orphans: 2; text-align:
start; text-indent: 0px; text-transform: none; white-space:
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width:
0px; background-color: rgb(248, 248, 248); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">.<br>
<br>
here the function returns a struct mallinfo.<br>
</span><br>
<span style="color: rgb(64, 64, 64); font-family: sans-serif;
font-size: medium; font-style: normal; font-variant-ligatures:
normal; font-variant-caps: normal; font-weight: 400;
letter-spacing: normal; orphans: 2; text-align: start;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(248, 248, 248); text-decoration-style:
initial; text-decoration-color: initial; display: inline
!important; float: none;">'struct mallinfo mallinfo (void)
<br>
<br>
so i created a Struct Mallinfo <br>
and i declare an external function As Struct Mallinfo<br>
<br>
Public Extern mallinfo() As Struct Mallinfo
<br>
why this is wrong ?<br>
<br>
</span>
<div class="moz-cite-prefix">On 06/14/2018 11:55 AM, Benoît Minisini
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:d97c7858-cf3a-df1c-3882-48b47459256c@gmail.com">Le
14/06/2018 à 10:49, Demosthenes Koptsis a écrit :
<br>
<blockquote type="cite">i get an error with the following any
help?
<br>
<br>
Public Struct Mallinfo
<br>
arena As Integer
<br>
ordblks As Integer
<br>
smblks As Integer
<br>
hblks As Integer
<br>
hblkhd As Integer
<br>
usmblks As Integer
<br>
fsmblks As Integer
<br>
uordblks As Integer
<br>
fordblks As Integer
<br>
keepcost As Integer
<br>
End Struct
<br>
<br>
'struct mallinfo mallinfo (void)
<br>
Public Extern mallinfo() As Struct Mallinfo
<br>
<br>
<br>
----[ Gambas mailing-list is hosted by
<a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
<br>
</blockquote>
<br>
Have you read <a class="moz-txt-link-freetext" href="http://gambaswiki.org/wiki/doc/extern">http://gambaswiki.org/wiki/doc/extern</a> ?
<br>
<br>
Do you know C ?
<br>
<br>
</blockquote>
<br>
</body>
</html>