Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User sean_bean's Avatar
    Join Date
    Sep 2008
    Posts
    16
    hello , everyone,

    i had developed a DLL, and i try to use it in my application. i failed to load it on Nokia N73, but i can load on Emulator, does anybody know why? please help me , i am really suffer from it.

    the following is some related code :
    -----------------------------
    ............

    RLibrary library;

    TInt n;
    n=library.Load( _L("trustmobiregister.dll"), _L("C:\\Data\\") );
    if(n != KErrNone)
    {
    User::Exit( 40 );
    }

    .................

    the "trustmobiregister.dll" file was exist in the path "C:\\Data\\" on N73

  2. #2
    Registered User laa-laa's Avatar
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    N73 is an S60 3rd Edition device. Platform Security was taken into use in 3rd edition, and platsec prevents loading binaries from other locations than \sys\bin.

    Lauri

  3. #3
    Registered User sean_bean's Avatar
    Join Date
    Sep 2008
    Posts
    16
    thanks very much for your help , laa-laa

    i have take a try as your propose, but i am still failed to load the DLL, is there any other reasons? can you do me another favor?

    the following is the related code::


    1 some related call code:
    -----------------
    RLibrary library;
    TInt n;
    n=library.Load( _L("trustmobiregister.dll"), _L("\\sys\\bin") );
    //n=library.Load( _L("trustmobiregister.dll"), _L("!:\\sys\\bin") );
    //n=library.Load( _L("trustmobiregister.dll"));
    if(n != KErrNone)
    {
    User::Exit( 40 );
    }

    .................

    2 some lines in .pkg file
    ---------------------
    ........
    "C:\Symbian\9.1\S60_3rd_MR_3\Epoc32\release\GCCE\UREL\app.exe" -"!:\sys\bin\ app.exe"
    "C:\Symbian\9.1\S60_3rd_MR_3\Epoc32\release\GCCE\UREL\trustmobiregister.dll" -"!:\sys\bin\trustmobiregister.dll"

    .......



    best regards

  4. #4
    Registered User laa-laa's Avatar
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122
    What is the error code you're getting?

    Platsec also introduced the notion of capabilities. One reason for DLL loading failure can be that the loading exe has some capabilities that the DLL binary does not have.

    And, is there a reason for using runtime linking to the DLL (through RLibrary) and not compile-time linking (through LIBRARY keyword in MMP file)?

    Lauri

Similar Threads

  1. Nokia PC Connectivity能否链接到cdma手机上发送短信和其他操作?
    By bborn in forum Web Technologies and Multimedia Content- Web 技术和多媒体内容
    Replies: 2
    Last Post: 2004-05-04, 11:06

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved