Help please - how to create a dll

Just starting out? Need help? Post your questions and find answers here.
cbrooks
User
User
Posts: 57
Joined: Thu Sep 16, 2010 3:26 am

Help please - how to create a dll

Post by cbrooks »

Hi all;

This may be a little bit tricky or perhaps easier than I expect.

I have a lot of code written in QB64 that will take me too long to re-write in PB. However, I am making the transition over to PB as I see a lot of advantages for new programs.

Still, I don't want to re-write old code.

So, in order to give access to SQL to my old QB64 apps, is it possible to create a dll accessible from QB64? I thought one way of doing it was perhaps through a TCP/IP local host connection - but I bet there is a better way. (QB64 does not read sql well - can't read past the first column fyi )

I have an array of information to pass between the two: a$(1) to a$(32) I'd like to send a string request to the dll (such as query column "phone" for "905" and receive back the array a$(1-32) for all responses.)

You have helped me build the code to read/write the sql (thank you) - perhaps you can get me started on this task.

with thanks

Chris
infratec
Always Here
Always Here
Posts: 7623
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: Help please - how to create a dll

Post by infratec »

Hi,

than it would be better to use the sqlite dll directly.
http://www.sqlite.org/download.html/

Bernd
cbrooks
User
User
Posts: 57
Joined: Thu Sep 16, 2010 3:26 am

Re: Help please - how to create a dll

Post by cbrooks »

thanks. it refers to sqlite - is that the same as mysql? which is what i am using.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Help please - how to create a dll

Post by srod »

SQLite is not the same as MySQL no sir; they are worlds apart.

MySQL runs as a server and is a heavyweight beast.

You will need to install an ODBC driver for MySQL before you can access a MySQL database on some server or other (or use a client library; I think there is a dll around these forums somewhere).
I may look like a mule, but I'm not a complete ass.
Post Reply