Page 1 of 1

Using external DLLs

Posted: Sat Jul 18, 2020 7:34 pm
by gddeluca
I'm trying to migrate a PowerBasic program to PureBasic. It uses the SQLite3.DLL.

I'm having no luck trying to figure out how to access the DLL. I'd prefer to NOT use the UseSQLiteDatabase() method as I have a lot of code already set up to use the direct access to SQLite3.DLL so I don't really want to re-write this if possible.

I see there is a LIB file, and there is something called Import which is supposed to help, but I'm floundering as to how they all fit together.

I'm assuming once I figure this out, the same methods would apply to accessing the Windows API as well.

Help!

[UPDATE]
OK, looking seriously at Import, it seems as if it requires ME to translate each API call myself to add to the Import / EndImport block.

Really? It's totally a DIY project? Then what are the .LIB and .IMP files I see? I can find absolutely no information about what these are of how they're used. It SEEMS they are some kind of support for doing external DLL calls, but I have no idea how they're used.

[\UPDATE]

Re: Using external DLLs

Posted: Sat Jul 18, 2020 9:22 pm
by mk-soft
Just a suggestion as a solution ...

SQLite C-Interface

There are many more. Just search for sqlite in the forum.