Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2005

    Question File Path problem

    Dear Gens,

    i'm having a problem and need your help
    i am downloading some data files in my pkg for later use by the application.

    the problem is that it works well on the device but i don't know how to make it work on emulator since it seems to not be able to locate the file.

    the code for defining the file path
    #ifdef __WINS__
    the code for opening the file
    when i debug this code the application will not enter into the if statement
    	if (aFile.Open(aFs, iDocument.AddPath(KCompanyFile), EFileRead) == KErrNone)
    		TFileText ft;
    here is what i wrote in the pkg file
    "C:\AppName\category.txt"	-"!:\private\07C2F442\category.txt"
    i don't know the way that will make the emulator see my file as the on device application did.

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Czech Republic

    Re: File Path problem


    if you want to acess the file "c:\\AppName\\category.txt" on the emulator you have to create the file first in your SDK in the following sub-path: "\epoc32\winscw\c\AppName\category.txt".

    I do not know what is content of the "iDocument" variable, but following code will work:

    if (aFile.Open(aFs, KCompanyFile, EFileRead) == KErrNone)

Similar Threads

  1. Problem with ensymble_python2.5-0.26.py in linux
    By tansualpcan in forum Symbian
    Replies: 2
    Last Post: 2008-04-15, 10:12
  2. Problem to install sis file
    By aamitgupta in forum Symbian
    Replies: 13
    Last Post: 2008-02-15, 17:59
  3. Error with makesis.exe and creating the .pkg file
    By gramya87 in forum Symbian Tools & SDKs
    Replies: 7
    Last Post: 2007-10-10, 13:53
  4. Contacts fields order??
    By timatima in forum Symbian
    Replies: 1
    Last Post: 2007-06-08, 13:51
  5. problem installing sis file
    By lucidness in forum Symbian
    Replies: 8
    Last Post: 2006-04-20, 17:51

Posting Permissions

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