Calling C DLL
Posted: Wed Mar 24, 2004 4:47 pm
Hello, just one question from a Newbie:
I have a C DLL from a databaseserver ... With VB i could use it directly with ADO.
So i tried it with purebasic and i think there is something wrong.
I tried also with the purebasic DLL Importer, but it always stop working, so i wanna make it directly.
Here is the first function from the header file:
ISC_Status isc_Export isc_embed_dsql_release(ISC_Status ISC_FAR *, char ISC_FAR*)
i found also, that in the header ISC_STATUS is define as long, ISC_Export is define in a few ways, f.e. -stdcall and ISC_FAR has a define as _far.
So i translated it like follow:
long _stdcall ...(long _far *, char _far *)
i made in purebasic a few pointers and called the procedure, but nothing could help.
Can somebody help my by translation the header in purebasic ?
If you want the hole header file you will find it every where in the internet. Its a databaseserver "Firebird" , f.e. in sourceforge.net.
i want to make a little wrapper for use this Firebird Database Server for PureBasic, but i am not a C Programmer and i have now Problems by translating it ...
Thanks a lot
Cu Thomas
I have a C DLL from a databaseserver ... With VB i could use it directly with ADO.
So i tried it with purebasic and i think there is something wrong.
I tried also with the purebasic DLL Importer, but it always stop working, so i wanna make it directly.
Here is the first function from the header file:
ISC_Status isc_Export isc_embed_dsql_release(ISC_Status ISC_FAR *, char ISC_FAR*)
i found also, that in the header ISC_STATUS is define as long, ISC_Export is define in a few ways, f.e. -stdcall and ISC_FAR has a define as _far.
So i translated it like follow:
long _stdcall ...(long _far *, char _far *)
i made in purebasic a few pointers and called the procedure, but nothing could help.
Can somebody help my by translation the header in purebasic ?
If you want the hole header file you will find it every where in the internet. Its a databaseserver "Firebird" , f.e. in sourceforge.net.
i want to make a little wrapper for use this Firebird Database Server for PureBasic, but i am not a C Programmer and i have now Problems by translating it ...
Thanks a lot
Cu Thomas