×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Nov 2008
    Posts
    54

    Can I creat a database in E drive in emulator

    Hello everyone:

    I am doing a project about database.

    I often test my code between emulator and realmachine 5800.

    but in emulator, I can only creat database in C: drive, but in real machine ,I can only use e:/


    it is really complicated. does anyone know how to fix it that I don't need to always change my code to test my app.

    I try RProcess().FileName() to get my full path, but in the emulator, it is z:\ ,which still can not be created a database.





    Thank you.
    Last edited by alicenan88; 2009-11-19 at 14:05.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Budapest, Hungary
    Posts
    28,567

    Re: Can I creat a database in E drive in emulator

    Although with some magic it is probably possible to have e: in the emulator (» Symbian OS vx.y » Symbian OS Tools And Utilities » Emulator » Emulator configuration » How to configure virtual drives), a #ifdef may also help you.
    Code:
    #ifndef __WINS__
    _LIT(KMyDatabase,"e:\\trallala.db");
    #else
    _LIT(KMyDatabase,"c:\\trallala.db");
    #endif

Similar Threads

  1. Trouble with the S60 3rd Edition Emulator debugging Java applications
    By GuusDavidson in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2009-11-27, 12:16
  2. Replies: 1
    Last Post: 2008-07-11, 10:06
  3. Experiences with J2ME, Netbeans, Eclipse and S60 3rd emulator
    By neil.young in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2008-02-14, 16:14
  4. WLAN Connection from Emulator
    By capri07 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-12-13, 05:13
  5. J2ME Question: Can't display my app on Nokia 7210 Emulator?
    By mibuyt in forum Mobile Java General
    Replies: 10
    Last Post: 2003-10-28, 22:43

Posting Permissions

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