Using PAR'ed resources

A PocketC native palm library offering native forms and assorted utilities

Postby WauloK on Fri Apr 19, 2002 2:17 am

I was just wondering.. I still open and close databases/resources the same way after PAR as before? With the same commands, I assume. The db's/resources don't have to be opened a different way do they?
Thanks.


Funky groovy PocketC support site.
http://pocketc.bangrocks.com/
If you love PocketC, you'll love this!
Join and become part of the community!
News, reviews, free source code and more!
Funky groovy PocketC support site.
http://pocketc.bangrocks.com/
Iron Filings v2.0 released.
Download a demo version at http://www.palmgear.com
Made with PocketC!
WauloK
 
Posts: 232
Joined: Tue Jan 15, 2002 2:41 am
Location: Australia

Postby jstadolnik on Fri Apr 19, 2002 2:55 am

If you've par'ed all the stuff that was in your "resource database" into your application .prc, you no longer should call OpenRsrcDb to open the resource database. All the resources will be automagically found.

If you have a bitmap or font database which you par'ed in to app's .prc, you should still use the Open* calls, but make the database name be your app's name instead.

Basically it works like this: when a resource is being called up (form, menu, etc) the PalmOS calls I used will first check the app's .prc file for the resource, failing that, it will when search all the open databases (ones opened with OpenBmpDb, OpenFontDB, or OpenRsrcDb) for the resource.

Joe

The PToolboxLib guy.
http://www.geocities.com/retro_01775/PToolboxLib.htm
jstadolnik
 
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA


Return to Pocket Toolbox

Who is online

Users browsing this forum: No registered users and 2 guests

cron