×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    3

    Strange behaviors of LoadLogicalDevice() on S60?

    Dear all,

    I am developing a simplest device driver with S60 DP 2.0 SDK on my N6600, but I found it always return error KErrAccessDenied when I call LoadLogicalDevice( _L("MyDriver.ldd" )). I have also tried to copy ecomm.ldd to E:\System\Libs, and but found LoadLogicalDevice( _L("ecomm.ldd") ) always return KErrCorrupt error. It seems LoadLogicalDevice() only works with ROM builtin device drivers in S60, while it works for all drivers on UIQ 2.1.

    Or maybe I need some extra setup like code signing to make it work? Could some experts explain me in some depth ? Thanks a lot.

    My sample code listed below:

    MyDriver.cpp
    =====================================
    #include <kc_arm.h> // Borrowed from UIQ SDK 2.1

    EXPORT_C DLogicalDevice* CreateLogicalDevice()
    {
    // This func was never called.
    return NULL ;
    }

    GLDEF_C TInt E32Dll(TDllReason /*aReason*/)
    {
    return KErrNone;
    }

    MyDriver.Pref
    =====================================
    TARGET MyDriver.LDD
    TARGETTYPE DLL
    UID 0x100000af 0x10009999

    MyDriver.Def
    =====================================
    EXPORTS

    CreateLogicalDevice__Fv @ 1 NONAME

    MyDriver.mmp
    =====================================
    TARGET MyDriver.ldd
    TARGETTYPE DLL
    UID 0x100000AF 0x10009999
    SOURCEPATH .
    SOURCE MyDriver.cpp
    LIBRARY euser.lib

    SYSTEMINCLUDE \epoc32\include \epoc32\include\kernel

    NOSTRICTDEF
    DEFFILE bmarm\mydriver.def

  2. #2
    Registered User
    Join Date
    May 2004
    Posts
    3
    Any hints will be helpful.

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    88
    Series 60 will only load device drivers from
    ROM. No way around it (short of hacking
    the ROM...).

    Mika

  4. #4
    Registered User
    Join Date
    May 2004
    Posts
    3
    Thank you anyway.

  5. #5
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    72

    hello flexchen

    flex , can you send me that code in zip. I simplest device driver.
    Plz. ANd also tell me how to build and run this code.

    Thansk in advance .

Posting Permissions

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