--
Chris Keating
Sybase Adaptive Server Anywhere Professional Version 8
iAnywhere Solutions http://www.iAnywhere.com
** Please only post to the newsgroup
** Whitepapers can be found at http://www.iAnywhere.com/developer
** EBFs can be found at http://downloads.sybase.com/swx/sdmain.stm
** Use CaseXpress to report bugs http://casexpress.sybase.com
<m...@fcsedp.it> wrote in message news:eilutI9RDHA.191@forums-2-dub...
> Hi everybody!
>
> I have created a DLL in Delphi6 including the following functions:
>
> function OpenConn : longint; export; stdcall;
> function CloseConn : longint; export; stdcall;
> function Request (args : pchar) : longint; export; stdcall;
> function AddParam (sP, sV : pchar) : longint; export; stdcall;
> function ClrParam : longint; export; stdcall;
> procedure WSACloseAll; export; stdcall;
>
> "translated" in powerscript by
>
> FUNCTION LONG openconn () LIBRARY "wsa.dll";
> FUNCTION LONG closeconn () LIBRARY "wsa.dll";
> FUNCTION LONG request (string args) LIBRARY "wsa.dll";
> FUNCTION LONG addparam (string sP, string sV) LIBRARY "wsa.dll";
> FUNCTION LONG clrparam () LIBRARY "wsa.dll";
> SUBROUTINE WSACloseAll () LIBRARY "wsa.dll";
>
> When I call it from an application in Powerbuilder 6.5 it works perfectly
> well; but on closing the application, an access violation error comes off
> that does not occur if I don't use the DLL.
> Does anybody have any suggestion?
>
> Thanks.
>
> Bye.
>
> Marco Ferlini
> F.C.S. Solutions S.r.l.
> marco....@fcssolutions.it
>
>
>
Użytkownik <m...@fcsedp.it> napisał w wiadomości
news:eilutI9RDHA.191@forums-2-dub...