Using external DLLs

Just starting out? Need help? Post your questions and find answers here.
gddeluca
New User
New User
Posts: 9
Joined: Sun Apr 19, 2015 5:25 pm

Using external DLLs

Post 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]
User avatar
mk-soft
Always Here
Always Here
Posts: 6607
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Using external DLLs

Post by mk-soft »

Just a suggestion as a solution ...

SQLite C-Interface

There are many more. Just search for sqlite in the forum.
My Projects EventDesigner V3 / ThreadToGUI / OOP-BaseClass / Windows: Module ActiveScript
PB v3.30 / v5.75 - OS Mac Mini - VM Window Pro / Linux Ubuntu
Downloads on my OneDrive
Post Reply