DLL import from PowerBasic
Posted: Mon Sep 15, 2008 7:59 am
My target is to use SQLitening, a PowerBasic DLL for SQLite in a Client/Server pseudo-mode from Fred Meier. (This tool was commented in this forum before).
I have imported the DLL with DLL Importer tool o PB though I don't know how I can see the type of the parameters, once created the import LIB.
The question is how can I translate a call of this:
slConnect ([rsServer String, rlPort Long, rsModChars String]) Long
In the source code of PowerBasic the function is defined like this:
Function slConnect alias "slConnect" (optional byval rsServer as String, _
optional byval rlPort as Long, _
optional byval rsModChars as String) Export as Long
How a string is passed by value in a DLL of PowerBasic, is it a pointer to a null terminated string? A sample of code will be great.
Thanks.
I have imported the DLL with DLL Importer tool o PB though I don't know how I can see the type of the parameters, once created the import LIB.
The question is how can I translate a call of this:
slConnect ([rsServer String, rlPort Long, rsModChars String]) Long
In the source code of PowerBasic the function is defined like this:
Function slConnect alias "slConnect" (optional byval rsServer as String, _
optional byval rlPort as Long, _
optional byval rsModChars as String) Export as Long
How a string is passed by value in a DLL of PowerBasic, is it a pointer to a null terminated string? A sample of code will be great.
Thanks.