At 23:08 2003-1-2 -0800, you wrote:
The problem is solved.

When I tried to create an empty CW9 (as I have no
problem of building new project from CW9 so far)
and migrate my code and resource to the empty
project, I found the zero byte .rsrc is 4k is size!

Constructor opens the proper .rsrc file in the hidden
Resource.frk folder. However, CW9 links the 4k .rsrc
which in the parent folder of the real .rsrc file.

After I delete the 4K .rsrc (which contains an ancient
verion of the resource) and create a zero-byte .rsrc,
everything is back to normal.
Hmmm... I'd like to better understand the problem. There are several components at play here.

1) You originally had a 0-byte .rsrc file, a RESOURCE.FRK folder, and a 4K .rsrc file in the RESOURCE.FRK folder.

2) When you moved your files, you only copied the 4K file and it wasn't in the RESOURCE.FRK folder.

3) The linker acted like it was a zero-byte file, not pulling in any resources.

4) When you fixed this setup, the linker again produced the good application.

If I got any of these steps wrong, please let me know. We adjusted how the Mac OS linker imports resources slightly in order to solve some link errors, so its possible we loosened the behavior too much, leading to errors like this.

Constructor (at least since 1.6) seems to be OK editing either the paired files or just a resource fork part by itself. The CW Mac OS linker ahould be a bit more stringent.

Of course, we're now pushing the Palm OS 68K linker -- by not even dealing with MacOS format resources, it simplifies things on Win32-based systems a lot.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com

--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Reply via email to