Article View: pilot.programmer
Article #12Re: Application Information Block, how to access
From: 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
Technical Details
Message-ID:
<f0c5ae48.0402180926.3bf6f64f@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailReferences:
<f0c5ae48.0402161659.26908c35@posting.google.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10baa0,c4f13e881a3986bb X-Google-Attributes: gid10baa0,public X-Google-Thread: 109e18,c4f13e881a3986bb X-Google-Attributes: gid109e18,public X-Google-Thread: 10c638,c4f13e881a3986bb X-Google-Attributes: gid10c638,public X-Google-Thread: 112073,c4f13e881a3986bb X-Google-Attributes: gid112073,public X-Google-ArrivalTime: 2004-02-18 09:26:26 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: scottelloco@yahoo.com (Scott Allen) Newsgroups: pilot.programmer,comp.sys.palmtops.pilot,codewarrior.palm,comp.sys.palmtops Subject: Re: Application Information Block, how to access Date: 18 Feb 2004 09:26:26 -0800 Organization: http://groups.google.com Lines: 41 Message-ID: <f0c5ae48.0402180926.3bf6f64f@posting.google.com> References: <f0c5ae48.0402161659.26908c35@posting.google.com> NNTP-Posting-Host: 65.195.62.25 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1077125186 2881 127.0.0.1 (18 Feb 2004 17:26:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 18 Feb 2004 17:26:26 +0000 (UTC)