Documentation Archive Developer
Search

ADC Home > Reference Library > Technical Q&As > QuickTime > QuickTime for Windows >

QuickTime for Windows resource files


Q: I am having problems using the FSpOpenResFile function on Windows to open files containing Mac-style resources for my application. It seems this function will only open resource files with the extension .qtr?

A: QuickTime for Windows can locate and read resource forks in the formats listed below. It can also write resource data into any of these formats where the resource fork is not in the same file with the data fork. Those formats which are "single-file" (resource fork and data fork are in the same file) are read-only.

Note you can also write a QuickTime component to add support for any additional custom formats. Check the QuickTime online documentation (see <http://developer.apple.com/documentation/quicktime/qtdevdocs/RM/frameset.htm>) for more information on writing QuickTime components.

Here are the names of resource files supported by QuickTime for Windows:

      DOS floppy mode:
          data: myfile.blah
          resource: RESOURCE.FRK\myfile.blah

      PCMacLan mode:
          data: myfile.blah
          resource: myfile.blah.#res

      .QTR (QuickTime resource) mode:
          data: myfile.blah
          resource: myfile.qtr


Note:
The '.QTR mode' is the format produced by the QuickTime Rez tool when run on Windows (the Rez tool is part of the QuickTime for Windows software development kit). Typically, your executable (.exe) or DLL will get its resources from a .qtr resource file during program development.



      RezWack mode:
          data: myfile.blah
          resource: myfile.blah


Note:
The RezWack mode format is read-only. Files in this format are created by the QuickTime RezWack utility, which is provided as part of the QuickTime for Windows software development kit. This utility allows you to embed Mac-style resources directly into a Windows DLL or .exe file. The QuickTime resource-management routines are able to correctly locate and read resources embedded with this utility in a .exe or DLL. This is the preferred method for delivering resource forks in a commercial product, as both the data fork and resource fork are combined into a single file.



      Apple Double mode:
          data: myfile.blah
          resource: %myfile.blah

      Apple Single mode:
           data: myfile.blah
           resource: myfile.blah
      Note: This format is read-only.

      NTFS mode:
           data: myfile.blah
           resource: myfile.blah:AFP_Resource (NTFS named fork notation)

      EtherShare mode:
          data: myfile.blah
          resource: .rsrc\myfile.blah

      HFS on Linux mode:
          data: myfile.blah
          resource: .resource\myfile.blah



[Apr 08 2002]