<br><br><div class="gmail_quote">On Mon, May 26, 2008 at 10:36 AM, Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
On 26.05.2008, at 15:21, Mariano Martinez Peck wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
&quot;could not coerce arguments&quot;<div class="Ih2E3d"><br>
int odbx_set_option(<br>
 &nbsp; &nbsp;odbx_t* handle,<br>
 &nbsp; &nbsp;unsigned int option,<br>
 &nbsp; &nbsp;void* value )<br></div><div class="Ih2E3d">
apiSetOption: handle option: anOption value: aValue<br>
 &nbsp; &nbsp;&quot;int odbx_unbind(odbx_t*)&quot;<br>
 &nbsp; &nbsp;&lt;cdecl: long &#39;odbx_set_option&#39; (ulong ulong void*) module: &#39;opendbx&#39; &gt;<br>
 &nbsp; &nbsp;^self externalCallFailed<br>
<br></div><div class="Ih2E3d">
err := OpenDBX apiSetOption: self option:32 &nbsp;value:1.<br>
</div></blockquote>
<br>
<br>
The first argument appears to be a pointer to a handle object. You probably should not declare that as ulong if you then pass &quot;self&quot; (which I assume is a ExternalStructure subclass). But that depends on how you acquire the handle, and how you represent it in the image.<br>

</blockquote><div><br>Yes you are right, sorry. It was not self, but a attribute called handle. My mistake.<br>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
The argument to void* should be a ByteArray or WordArray, methinks, I&#39;d try &quot;WordArray with: 1&quot; if you want to pass a pointer to the Integer 1.<br><font color="#888888">
<br>
- Bert -<br>
</font></blockquote><div><br>Sounds interesting. I will test it and then I tell you.<br><br>Thanks,<br><br>Mariano<br><br>&nbsp;</div></div><br>