InitDatabase()?Fred wrote:Another small change:
Code: Select all
InitDatase() has been renamed to UseODBCDatabase() for more flexibility (to easily implement more database plugins).
PureBasic 4.10 Beta 3 for Windows released
-
- Addict
- Posts: 841
- Joined: Mon Jun 07, 2004 7:10 pm
- Psychophanta
- Always Here
- Posts: 5153
- Joined: Wed Jun 11, 2003 9:33 pm
- Location: Anare
- Contact:
Anyway, i have my little ideaFred wrote:Top SecretFlype wrote:and, hum, you say plugin ?
interesting... one more word about these plugins ?

Maybe, a mysql plugin as it is widely used and the libmysql.lib is available for all OS.
Or perhaps a SDK to write our own database plugins.
Ok i stop here, i like surprises.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
The editor is now fast enough to fool around again, good stuff!
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
Thanks for this beta.
XML-EXPAT: maybe it's a good idea to use the new 2.0.1 release for the final version of PB.
Here the expat changelog:
XML-EXPAT: maybe it's a good idea to use the new 2.0.1 release for the final version of PB.
Here the expat changelog:
Release 2.0.1 Tue June 5 2007
- Fixed bugs #1515266, 1515600: The character data handler's calling
of XML_StopParser() was not handled properly; if the parser was
stopped and the handler set to NULL, the parser would segfault.
- Fixed bug #1690883: Expat failed on EBCDIC systems as it assumed
some character constants to be ASCII encoded.
- Minor cleanups of the test harness.
- Fixed xmlwf bug #1513566: "out of memory" error on file size zero.
- Fixed outline.c bug #1543233: missing a final XML_ParserFree() call.
- Fixes and improvements for Windows platform:
bugs #1409451, #1476160, 1548182, 1602769, 1717322.
- Build fixes for various platforms:
HP-UX, Tru64, Solaris 9: patch #1437840, bug #1196180.
All Unix: #1554618 (refreshed config.sub/config.guess).
#1490371, #1613457: support both, DESTDIR and INSTALL_ROOT,
without relying on GNU-Make specific features.
#1647805: Patched configure.in to work better with Intel compiler.
- Fixes to Makefile.in to have make check work correctly:
bugs #1408143, #1535603, #1536684.
- Added Open Watcom support: patch #1523242.

Where could I find a list of changes or an updated help?

Code: Select all
Procedure.b DBaccess()
Protected nfile_db.l = 0, ret.b, Err.s
;Arir archivo MySQL
nfile_db.l = OpenDatabase(#PB_Any, "db_local", "user", "_xxx_")
If nfile_db.l = 0
Err.s = DatabaseError()
MessageRequester("Información","Error en bbdd: " + Err.s)
ret.b = #False
Else
;Cerrar archivo MySQL
CloseDatabase(nfile_db.l)
ret.b = #True
EndIf
ProcedureReturn ret.b
EndProcedure
UseODBCDatabase()
DBaccess()
With previous PB version (Beta 2 and InitDatabase()) there is no problem and it runs fine.
QuimV
- netmaestro
- PureBasic Bullfrog
- Posts: 8451
- Joined: Wed Jul 06, 2005 5:42 am
- Location: Fort Nelson, BC, Canada