×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jan 2009
    Posts
    3

    [split] Dynamically load DLL at run time (Re: Add dll to Carbide.c++)

    Quote Originally Posted by ltomuta View Post
    A 3rd party DLL and/or its link library if available must be copied in the SDK, next to the system DLLs. The location differs based on the build configuration for which the DLL is provided. Also the interface header files should be copied in %EPOCROOT%epoc32\import but that is not really mandatory.

    To find out where to place the DLL/lib do a search in the SDK for "avkon.lib" and then make a judgement based on that listing.

    Once the files copied in the SDK you can start using the library as you would do with a regular one, add it to the MMP and call its interface in code.
    Hi There,

    Anybody willing to tell how to load your own dll at runtime and how well is this possible does it need to be certified to be loaded at runtime when your application starts?

    Thanks

  2. #2
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: [split] Dynamically load DLL at run time (Re: Add dll to Carbide.c++)

    Look in the SDK Documentation for RLibrary. Also read the Platform Security chapter which has the DLL loading rules.
    Whether an application (or a DLL) must be certified or not it depends on what capabilities the application/DLL uses/declares. Of course certification is alwais recomended.
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

  3. #3
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    58

    Re: [split] Dynamically load DLL at run time (Re: Add dll to Carbide.c++)

    There are a surprisinly large number of people who want to explicitly load their own dlls, and frequently get into problems doing so, yet the system will load and unload a DLL for you so I never really understand why they want to do it for themselves.

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: [split] Dynamically load DLL at run time (Re: Add dll to Carbide.c++)

    Some people want to hack Symbian at any cost, instead of just simply using it.

  5. #5
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: [split] Dynamically load DLL at run time (Re: Add dll to Carbide.c++)

    The Cynic, for example to implement plugins subsystem.

    This code snippet might be helpful: Loading DLL by RLibrary

    And, of course, don't forget about SDK help: check this section - Dynamically Loading Link Libraries

  6. #6
    Regular Contributor
    Join Date
    Mar 2009
    Posts
    58

    Re: [split] Dynamically load DLL at run time (Re: Add dll to Carbide.c++)

    Quote Originally Posted by A.A.M. View Post
    The Cynic, for example to implement plugins subsystem.

    This code snippet might be helpful: Loading DLL by RLibrary

    And, of course, don't forget about SDK help: check this section - Dynamically Loading Link Libraries

    I forgot to mention, there are a surprisingly large number of people who want to load their own plug-ins, when ECOM will do it for you and in a standard manner. Replace something that is standard and works perfectly well and is seemless with something that isn't standard, frequently doesn't work well, isn't as seemless, and would be a lot of work to match all the functionality ECOM provides.
    So I never really understand why they want to do it for themselves

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: [split] Dynamically load DLL at run time (Re: Add dll to Carbide.c++)

    Plugin architecture is already invented and implemented, that is ECOM.
    However the RLibrary-based approach makes sense if someone can live without some component, but he/she can also make use of it. In this case RLibrary::Load-ing a custom .dll quickly tells if the system was able to resolve its dependencies (the component is present), or not.

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. How to add and remove menu items on run time
    By somnathbanik in forum Symbian
    Replies: 1
    Last Post: 2009-06-04, 09:41
  3. how to load .bmp file at run time?
    By shafali gupta in forum Symbian
    Replies: 1
    Last Post: 2009-02-20, 13:02
  4. Replies: 6
    Last Post: 2007-09-26, 09:50
  5. S60 2nd to 3rd/ PlatformSecurity / Capabilities
    By jarkoos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 4
    Last Post: 2007-04-14, 14:08

Posting Permissions

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