Ben Combee a écrit :
> At 01:11 PM 7/27/2005, you wrote:
> >Actually, I would like to try for myself this idea of a resource database,
> >but under CW 9.3, when I try to link my new "PalmOS code resource" target
> >containing only the Constructor resource file, the linker complains about
> >a missing __startup__ routine. How can I create with CW 9.3 a resource DB
> >containing only UI resources? Must the type be 'rsrc' or other?
>
> If you use the Palm OS 68K Linker, there is a resource-only target
> type. However, everything with the Mac OS 68K Linker has to have code.
When I first tried a quick and dirty implementation, things worked right away!
But when I cleaned things up, its stopped working. I suspect my resource DB has
something wrong since when I load under POSE, the progress bar no longer fills,
it remains blank and quickly goes away. All it contains is one Main segment
with the Constructor file in it.
My CW 9.3 target parameters are as follows:
Linker: Palm OS 68K
Pre-linker: None
Post-linker: None
Project Type: Merged Resource File
no code entry point (grayed)
no standard resources
Type: rsrc
Creator: AURI (same as my app)
DB Version: 1 (default)
Header flags: Backup
Linker Info: Dead Strip Static Init Code
Exporting this in XML, all I get is this:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<?codewarrior exportversion="1.0" ideversion="5.0" ?>
<!DOCTYPE EXPORTEDPANEL [
<!ELEMENT EXPORTEDPANEL (NAME, (SETTINGLIST|VALUE))>
<!ELEMENT SETTINGLIST (SETTING+)>
<!ELEMENT SETTING (NAME?, (VALUE|(SETTING+)))>
<!ELEMENT NAME (#PCDATA)>
<!ELEMENT VALUE (#PCDATA)>
]>
<EXPORTEDPANEL>
<NAME>Target Settings</NAME>
<SETTINGLIST>
<SETTING><NAME>Linker</NAME><VALUE>Palm OS 68K Linker</VALUE></SETTING>
<SETTING><NAME>PreLinker</NAME><VALUE></VALUE></SETTING>
<SETTING><NAME>PostLinker</NAME><VALUE></VALUE></SETTING>
<SETTING><NAME>Targetname</NAME><VALUE>RsrcEN</VALUE></SETTING>
<SETTING><NAME>OutputDirectory</NAME>
<SETTING><NAME>Path</NAME><VALUE>:</VALUE></SETTING>
<SETTING><NAME>PathFormat</NAME><VALUE>MacOS</VALUE></SETTING>
<SETTING><NAME>PathRoot</NAME><VALUE>Project</VALUE></SETTING>
</SETTING>
<SETTING><NAME>SaveEntriesUsingRelativePaths</NAME><VALUE>false</VALUE></SETTING>
</SETTINGLIST>
</EXPORTEDPANEL>
What's wrong?
--
Luc Le Blanc
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/