×

Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    16

    [moved] why i can not load DLL on Nokia N73

    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
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122

    Re: why i can not load DLL on Nokia N73

    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
    Join Date
    Sep 2008
    Posts
    16

    Re: why i can not load DLL on Nokia N73

    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
    Join Date
    Aug 2003
    Location
    Oulu, Finland
    Posts
    1,122

    Re: why i can not load DLL on Nokia N73

    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

Posting Permissions

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