×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2005
    Posts
    176

    app installation path

    hy ,

    how can i get my app instalation path?
    is there any api for it , besides looking in file system for my app files?

    thanks

  2. #2
    Registered User
    Join Date
    May 2005
    Posts
    25
    void MyClass::GetModuleDirectory(TBuf<KMaxFileName>& aPath)
    {
    aPath.Zero();
    #ifdef __WINS__
    _LIT(KEmulPath, "c:\\");
    aPath.Copy(KEmulPath);
    #else
    // CEikonEnv::Static()->InfoWinL(_L(""),_L("1"));
    TFileName myPath = CEikonEnv::Static()->EikAppUi()->Application()->AppFullName();
    // CEikonEnv::Static()->InfoWinL(_L(""),_L("2"));
    TParsePtrC parser(myPath);
    aPath = parser.DriveAndPath();
    #endif
    aPath.ZeroTerminate();
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×