readme.txt

来自「symbian操作系统下如何生成和调用DLL的实例代码。」· 文本 代码 · 共 46 行

TXT
46
字号
Example for:

 - Using dynamic library


Build for emulator:

  in \QHelloWorld\group:
  bldmake bldfiles
  abld build winscw udeb
  abld freeze winscw
  abld build winscw udeb

  In Codewarrior:
  import and build TestDLL first
  import, build and start HelloWorld

Build for device:

  in \QHelloWorld\group:
  bldmake bldfiles
  abld build gcce urel
  abld freeze gcce
  abld build gcce urel
  makesis HelloWorld_gcce.pkg


Important things to consider:

 - Use proper UIDs that should be received from symbiansigned.com

 - When the keyword EXPORTUNFROZEN is used, there are problems to build for the gcce target.
   However, there is a workaround for this, and that is to freeze the DLL, and then build for gcce.
   The keyword EXPORTUNFROZEN should be removed from the mmp file.

 - Important issues related to capabilities for both application and library:

   - Dll needs to have at least the same capabilities as the application that tries to use it.

   - Dll need to have as many capabilities as possible so applications can use it:
      "Shared libraries that export a static interface will need to have capabilities such that all its users may load them"

   - http://www.symbian.com/files/rx/file3202.pdf
     Rule 2: A process cannot load a DLL with less capabilities than itself匘LL 
       - capabilities do only reflect a level of trust匘LL 
       - capabilities do not authorise anything

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?