At 11:07 AM -0700 30/8/06, Phil M wrote:
Since REALSQLdatabase does not have a Classic compatible plugin, I
think that I have to implement both REALSQLdatabase and REALdatabase.
You might be better of obtaining the old SQLite plugin. It works on
OS9, OSX and Win32.
So how do plugins work?
Do they try to load at app start if the code references the object
within the Plugin (i.e. REALSQLdatabase),
Yes they are then built in. This means that they can fail just by
being in the app when it is run on the wrong system.
You'll get some silly OS error when you start them up. I think...
or do they only load when first accessed? Basically I need to know
if I *have* to conditionally compile and split the application into
a Classic and OSX-only builds, or if it is safe to load the
appropriate database plugin based on a Gestalt system call (to
determine the OS version).
I think you will have to conditionally compile them into the separate binary.
I created a database wrapper and let it conditionally build in any
appropriate plugin libraries depending on build time constants. It
has all the same calls as the RB database object. It has one property
theDatabase as cDatabase. This gets cast to whatever the appropriate
database type is. The wrapper now handles 12 databases types,
including all the data syntax differences, connected users
differences etc etc etc.
AS it is an external item it is used in RB55 and RB2006 projects.
Also, there was just a post in the Getting Started list where
REALSQLdatabase was not working on a 10.2 system (Jaguar). Is this
true? The REALSQLdatabase documentation only states a limitation
with Classic.
--
Cheers,
Dr Gerard Hammond
MacSOS Solutions
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>