Thread View: pilot.programmer
3 messages
3 total messages
Started by Scott Allen
Tue, 17 Feb 2004 00:59
Application Information Block, how to access
Author: Scott Allen
Date: Tue, 17 Feb 2004 00:59
Date: Tue, 17 Feb 2004 00:59
14 lines
1548 bytes
1548 bytes
Hi, Does anyone have a sample of code (c or c++ preferably) that demonstrates the reading of a Palm pdb's Application Information Block (appInfo)? Even just an explination of how to access it would help me a lot. I've looked in a few books and searched online, but so far have only been able to find out on what appInfo is, but not how to actually access the data it contains. Thanks very much, -Scott
Re: Application Information Block, how to access
Author: Scott Allen
Date: Wed, 18 Feb 2004 17:00
Date: Wed, 18 Feb 2004 17:00
42 lines
2746 bytes
2746 bytes
Ok, I finally found a thread someone posted some time back concerning accessing a pdb's Application Information Block (AppInfo) which gave a general nod in the direction of the source for Pilot-DB (http://pilot-db.sourceforge.net/) in order to find the answer to how to access the AppInfo block. Pilot-DB has a nice function in Chooser.c called AppInfoInit() that sets and gets the AppInfo block for a pdb. I only needed the "get" part, so here's the code I ended up using. APP_INFO is the struct for the particlar AppInfo block I was grabbing, so you'll need to replace that with your struct. dbAppData is the pdb who's AppInfo block I'm accessing. appInfoPtr will contain your AppInfo Block data. LocalID dbID, appInfoID; UInt16 cardNo; APP_INFO *appInfoPtr; DmOpenDatabaseInfo(dbAppData, &dbID, NULL, NULL, &cardNo, NULL); DmDatabaseInfo(cardNo, dbID, 0, 0, 0, 0, 0, 0, 0, &appInfoID, 0, 0, 0); appInfoPtr = MemLocalIDToLockedPtr(appInfoID, cardNo); -Scott scottelloco@yahoo.com (Scott Allen) wrote in message news:<f0c5ae48.0402161659.26908c35@posting.google.com>... > Hi, > > Does anyone have a sample of code (c or c++ preferably) that > demonstrates the reading of a Palm pdb's Application Information Block > (appInfo)? Even just an explination of how to access it would help me > a lot. > > I've looked in a few books and searched online, but so far have only > been able to find out on what appInfo is, but not how to actually > access the data it contains. > > Thanks very much, > > -Scott
Re: Application Information Block, how to access
Author: Scott Allen
Date: Wed, 18 Feb 2004 17:26
Date: Wed, 18 Feb 2004 17:26
41 lines
2736 bytes
2736 bytes
Ok, I found a thread someone posted some time back concerning accessing a pdb's Application Information Block (AppInfo) which gave a general nod in the direction of the source for Pilot-DB (http://pilot-db.sourceforge.net/) in order to find the answer to how to access the AppInfo block. Pilot-DB has a nice function in Chooser.c called AppInfoInit() that sets and gets the AppInfo block for a pdb. I only needed the "get" part, so here's the code I ended up using. APP_INFO is the struct for the particlar AppInfo block I was grabbing, so you'll need to replace that with your struct. dbAppData is the pdb who's AppInfo block I'm accessing. appInfoPtr will contain your AppInfo Block data. LocalID dbID, appInfoID; UInt16 cardNo; APP_INFO *appInfoPtr; DmOpenDatabaseInfo(dbAppData, &dbID, NULL, NULL, &cardNo, NULL); DmDatabaseInfo(cardNo, dbID, 0, 0, 0, 0, 0, 0, 0, &appInfoID, 0, 0, 0); appInfoPtr = MemLocalIDToLockedPtr(appInfoID, cardNo); -Scott scottelloco@yahoo.com (Scott Allen) wrote in message news:<f0c5ae48.0402161659.26908c35@posting.google.com>... > Hi, > > Does anyone have a sample of code (c or c++ preferably) that > demonstrates the reading of a Palm pdb's Application Information Block > (appInfo)? Even just an explination of how to access it would help me > a lot. > > I've looked in a few books and searched online, but so far have only > been able to find out on what appInfo is, but not how to actually > access the data it contains. > > Thanks very much, > > -Scott
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads