Page 1 of 1

PostPosted: Fri Apr 19, 2002 2:17 am
by WauloK
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!

PostPosted: Fri Apr 19, 2002 2:55 am
by jstadolnik
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