<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>> I don't use Lazarus, i.e. .lpi files are of no use for me. The option<br><div>> -fPIC isn't necessary for the Win32 target, i.e. I didn't miss that one<br>> (but I was aware of it - at least it was well visible unlike the others<br>> which I had to find by trial and error).<br><br>Ok and thanks to note it. Hum, i have adapted all the uos-unit-examples for uoslib.<br><br>The good news :<br><br>All pure fpc programs and graphical using fpGUI are working perfectly.<br>The programs dealing with uoslib can access uoslib procedures and result of functions.<br>Perfect, perfect, perfect...<br>PS : I do not try yet to access the uoslib from foreign language (C, Cnet, Java,...).<br>PS2 : Little bemol, (but i think i ask to much for the library here), the library cannot synchronize procedure of object from the program.<br><br>The bad news :<br><br>All programs using LCL (Lazarus widgetset) crash after thread.terminate inside the library...<br>I dont know why, it is the same code and the same library.<br>Maybe i have to do something but i dont know what.<br>Using directly the uos unit, without using the library, is ok for LCL.<br><br>> >> It turns out that you missed to specify a matching calling convention<br>> >> for<br>> >> uos_loadlib (you specified "cdecl" in uoslib_h, but not in uoslib). It<br>> >> seems to work correctly after adding it at line 41 of uoslib.pas.<br><br>Aaarg, it was at the first procedure, i read and re-read the code thousand times and dont see it... Many thanks to have better eyes than mine... ;-)<br><br>> You're welcome, it wasn't that difficult after all. :-)<br><br>Maybe for you, but for me, i became crazy...<br><br>Re-thanks.<br><br>Fred<br><br></div> </div></body>
</html>