Author:PengChan (http://blog.csdn.net/feifei1018)
Date: 2008-07-15
Application program files must be located in directories with the form \system\apps\<program>\. Initialisation and configuration files should be in the same directory, or where the application is in ROM, in the equivalent directory on a writable drive.
Document files can be located in any directory except \system\, and may be given any name: the system will not alter the capitalisation of that name, and will not attempt to add or remove any extension.
The application architecture does not dictate the requirements for all files, or even all file stores. For instance, an e-mail application is not document based. An e-mail subsystem would store its messages in a directory structure using special e-mail policies to implement inbox, outbox and folders. Normally, this folder would be in a \system\ directory.
The filesystem of the phone is mapped to the PC, with the internal writable drive (C:) usually mapped to \epoc32\winscw\c and the ROM mapped to \epoc32\release\winscw\udeb\z for the debug build. You can also add further virtual drives, and reconfigure the standard drives to map to alternative locations.
There is one exception to the filesystem mapping, which is the location of the executables. On the phone, all executables are stored in the \sys\bin directory, but on the emulator, the executables are loaded from where they are built, that is, the \epoc32\release\winscw\udeb or \epoc32\release\winscw\urel directory.
For example, a program called helloworld.exe, built into the phone's ROM, will be stored in z:\sys\bin or, if it is installed onto the phone's internal drive will be located at c:\sys\bin (other drives can map to the phone's removable memory card). For the same application on the emulator, helloworld.exe will always be stored in \epoc32\release\winscw\udeb or \epoc32\release\winscw\urel for debug or release builds respectively.
|
发表于 @ 2008年07月15日 05:16:00 | 评论( loading... ) | 举报| 收藏