Hi Baiss,

Try this (somewhat old, but the information should still be relevant):

9.2 How can I move resource files
from Mac to Windows or vice versa? What format should I use?

Using floppy disks (or a cartridge drive) to move resource forks in the
/Resource.frk/ directory is the preferred method. There are other options
using resource flatteners on the mac and then building the resource.frk
directory yourself, but they are not for the faint of heart. Letting PC
Exchange on the Mac do the work is best.

Palm OS resources are really Mac OS resources (even on Windows). On Mac's a
single file has two forks, the data fork (standard flat file) and the
resource fork. When moving Mac OS resources to Windows Apple created a
standard way to represent the two forks for their PC Exchange software (PC
Exchange lets Mac's read DOS-format floppies and other media). The data fork
becomes a file in the current directory and the resource fork becomes a
separate file with the same name in a subdirectory of the current directory
called /resource.frk/.

For example, if you copy a file from the Mac called MyPPProg.rsr to the root
directory of a floppy disk using PC Exchange (or a compatible utility) when
you view that floppy on your PC you see:

- A:\MyPPProg.rsr
- A:\RESOURCE.FRK\MyPPProg.rsr

For resource-only files (which Constructor for Palm OS files are) the data
fork section of the file (A:\MyPPProg.rsr) is a 0 byte file (a placeholder
only).

This is the format Constructor expects for all its files. Its also the
format the 68k linker and PalmRez on Windows expect. When moving files from
Mac OS to Windows you must be sure to copy from the floppy disk the
\RESOURCE.FRK\ subdirectory in addition to the root .rsrc file and keep them
together. Both sections are needed by constructor to open the resource file.

Note that the creation of the \resource.frk\ is transparent on the Mac, you
don't do anything. You can't even see the \resource.frk directory from the
Mac. Also, this only applies to files moved with PC Exchange (floppy disks
or cartridges (jaz, etc.) mounted on the Mac with PC Exchange).

To move a Resource file from a PC to a Mac, copy both the \RESOURCE.FRK\
subdirectory in addition to the root .rsrc file to the PC formatted floppy
disk. In the Mac, you will only see one .rsrc file in the floppy disk.

Ways to move the file that won't work:

FTP - Depending on the FTP client on the Mac you'll end up with either the
data fork only or a MacBinarized file, neither will work. NT or Novell
AppleShare server - Both these servers handle resource forks from Macs
transparently, but do not copy the resource forks to connected Windows
clients. Again, you're left with only the data fork. ZIP or other archive 0-
Usually these utilities strip the resource fork from the Mac files during
compression.

Rgds,
Jun-Kiat Lam
Metrowerks Technical Support

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Baiss E.
Magnusson
Sent: Tuesday, June 20, 2000 11:39 PM
To: Palm Developer Forum
Subject: How to send Palm resource file to Windows from a Mac


I have developed a Palm application using CW on a Macintosh and I
need to share development with Windows programmers.

When I send them my project folder they can launch the IDE file but
can't link because the <rsrc> file of resources is empty as they
can't see the Mac resource fork. What do I need to do to flatten the
<rsrc> file for the Windoze folks.
--
Baiss E. Magnusson              | [EMAIL PROTECTED]
Magnus Computer Consulting
32307 NE 193rd St.
Duvall, WA. 98019                | 425-788-2394

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


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

Reply via email to