Still fighting with MDB_Lib

Just starting out? Need help? Post your questions and find answers here.
petlin
User
User
Posts: 10
Joined: Thu Apr 19, 2007 2:16 am

Still fighting with MDB_Lib

Post by petlin »

Hi guys,
For the life of me, PB is still not recognizing MDB_Lib. Everyone says just install the lib into UserLibrarys (I assume they mean just copy it into the directory, right?). When I try: hMDB=MDB_Connect("C:\PureBasic\Projects\TestSamples\Northwind.mdb", "Northwind.mdb","",""), the error message says "The following PureLibrary is missing:Library Extension".
Appreciate all your help, guys (and gals).
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Get rid of whatever you installed. Then, go to reelmedia.com and download the mdb library for PB 4. There are two, one is for 3.94 and the one you want is in the group that is released for 4.0. This may not work for the 4.10 beta, so if you want to use this lib for now you might have to stick with 4.02. He'll probably release one for 4.10 if he hasn't done so already, but probably not yet. Put the file in \PureBasic\Libraries\Userlibraries and restart the compiler, it should work without problems.

Common library problems:

Unrecognized Command: - you probably put the lib in the wrong folder or forgot to restart the compiler

Missing Library Extension: - you are probably using a library for the wrong version of PureBasic
BERESHEIT
petlin
User
User
Posts: 10
Joined: Thu Apr 19, 2007 2:16 am

Post by petlin »

Thanx Maestro,
I think I found out the real problem. Yes, I did have the wrong version as you suggested but, on closer inspection in the use of Paul's functions it called for a the use of a DSN.
While DSN's are used often, they are not standard fair in a serious business application (client/server or 3-tier environment - too much of a chance of it getting erased by the admin or someone else).
Can someone point me to some database functions that don't depend on DSN's?
Thanx again
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

What do you mean get erased?
You can also password protect it if you wish.

I got a database of 300MB running fine with no problems what so ever
with over 60,000 events (rows)

I don't understand what might be the problem here using this connection.
petlin
User
User
Posts: 10
Joined: Thu Apr 19, 2007 2:16 am

Post by petlin »

Hi Pantcho,
I'm sure a DSN works well, but I don't see them used in serious business environments. I'm sure many out there will be willing to argue this point, but with the advent of ADO (ActiveX Data Objects) DSN's (and for that matter ODBC) is just outdated connection methodology.

Now if I can just find a way to incorporate ADO (rolled up in the MDAC - Microsoft Data Access Components) we could make PB sing and dance with all data stores (Oracle, SQLServer, etc.)

Thanx for your input
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8451
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

For ADO, you can give this a try:

http://www.purebasic.fr/english/viewtopic.php?t=26744
Some examples added:
ado, flash, ie, mediaplayer, msxml, network, sapi, vbs and word
BERESHEIT
Post Reply