Embedding a native library in a .prc

Postby jstadolnik on Sun Jul 15, 2001 5:17 pm

It is possible to imbed one native library file into an applet .prc file (one is the palmOS limit). Here's how:

1) Download and install "par" in your work directory.(http://www.djw.org/product/palm/par/).

2) Change the library call in your code to point to the applet itself.


@dbname "applet_name";
library "applet_name"
main() {

3) Copy the orignal native library's .lib file to be "applet_name.lib".

4) Recompile the application.

5) Extract the libr0000.bin resource from the library with the following dos/bash command line using the appropriate native library name:
"par.exe x native_lib.prc"

6) Embed the libr0000.bin into the applet .prc file with following dos/bash command:
"par.exe a applet_name.prc libr0000.bin"



Edited by - jstadolnik on 07/27/2001 18:24:18
Posts: 1741
Joined: Wed Dec 06, 2000 3:34 am
Location: USA

Return to PocketC for Palm OS KB

Who is online

Users browsing this forum: No registered users and 0 guests