Syamiban Q&A (1) Monday, October 12, 2009

1> 如何判断文件是否存在
有3个函数可以使用

  1. ConeUtils::FileExists
  2. BaflUtils::FileExists
  3. RFs::Entry
第一个比第二个要方便些

2> 创建随机数
    Math::Rand

3> symbian应用程序如何获得命令行参数
  1. TBuf<KCommandLen> command; // You determine the value of KCommandLen
  2. User::GetCommand(command); // got it
对于eka2来说,这个是非常简单的

0 comments: