Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2008

    File path in standard C apps

    how should the file paths using standard C on Symbian platform be represented?

    This question arises from that I use the open source sqlite standard C library in my symbian application, and when I try to open a database using sqlite3_open API, it returns error code = 14, that means " Unable to open the database file"

    the API :
    int sqlite3_open(
      const char *zFilename, 
      sqlite3 **ppDb 
    the call I do:
    	sqlite3 *db = NULL;
    	int result = sqlite3_open("C:\\data\\test.sqlite", &db);
    I get result = 14, unable to open database file

    any help?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: File path in standard C apps

    Open C (and Symbian) uses backslashes, so that path seems to be fine. Consider checking the internals of that function, it is open source after all.

Similar Threads

  1. file path in open-c
    By himsymbian in forum Open C/C++
    Replies: 6
    Last Post: 2008-06-25, 16:05
  2. Create file in Private Path
    By earendil in forum Symbian
    Replies: 4
    Last Post: 2007-06-19, 08:55
  3. creating file in application path
    By sunny_singh in forum Symbian
    Replies: 2
    Last Post: 2005-09-21, 11:21
  4. Standard APPS
    By nunomorais in forum Symbian
    Replies: 1
    Last Post: 2003-07-30, 12:15

Posting Permissions

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