after searching the forum and the wiki, I give up and ask for your help:
In "BBC BASIC for Windows" using the SQLite library works out of the box - downloading SQLite.bbc, dll and def -files, copying in the @LIB$-folder and go.
Using SDL-Version on Windows did not work. And I suppose that Linux is an other story .
So please can someone tell me, how to adapt the original library, so that sqlite works with the SDL-Version for Windows too ?
Here the code of the Library:
Code: Select all
REM SQLite3 Library for BB4W by Jon Ripley
REM Release 1 03/09/2009
;
REM Load the SQLite DLL and set up functions and constants
DEF PROCsqlite_initialise
PRIVATE ps{}
PROCsqlite_private(ps{})
LOCAL _%,_hdll%
SYS "GetModuleHandle", "kernel32.dll" TO _hdll%
SYS "GetProcAddress", _hdll%, "GetProcAddress" TO _%
SYS "LoadLibrary", @lib$+"sqlite3.dll" TO _hdll%
IF _hdll%=0 THEN SYS "LoadLibrary", @dir$+"sqlite3.dll" TO _hdll%
IF _hdll%=0 THEN ERROR 100, "Warning: A required DLL 'sqlite3.dll' could not be found."
ps.sqlite3%=_hdll%
SYS _%, _hdll%, "sqlite3_aggregate_context" TO sqlite3_aggregate_context%
How can I call this Windows-API in SDL ?
The second error takes place when the dll should be loaded with "LoadLibrary".
I learned, that in SDL there ist the "SDL_LoadObject" - function - but that did not work either.
So please, how can I adapt the two function-calls, so that the sqlite3.dll would work ?
Thanks a lot!
Greetings,
headcrash