I'm writing a library in CW 9 that is interfacing with an NSBasic
application.  The result is that a database is created in NSBasic and the
records are added within my library.  Each record will contain one numeric
field, with anywhere from 0 to many records being written.  I examined an
NSBasic created and populated PDB in a hex editor and, with some help, came
up with a structure of:

struct{
    UInt32    recordIndex;
    UInt32    IntegerData;
};

The above structure, when used to write records to the database, seems to
conform to the format that NSBasic would use in creating a similar database.
In the NSBasic application there is a NULL Handle error given on a dbread
statement.  Regarding the dbread statement, I've verified that the database
is open and that the index of the record being read is valid.  I'm reading
into a variable recdata of type Integer (to match with the UInt32 data type
in the above structure).

Does anyone have any ideas of why I'm getting that NULL Handle error?  I'm
not very familiar with NSBasic, but have good knowlege of coding in Code
Warrior.



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to