Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3271418
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T18:43:35+00:00 2026-05-17T18:43:35+00:00

Currently I’m developing a DLL which is intended to be linked to 3rd party

  • 0

Currently I’m developing a DLL which is intended to be linked to 3rd party applications in order to test whether this application is eligible to run at a given time.

First I thought about to create a DLL and handle the needed check in TInt E32Dll() function. But I was very surprised when I’ve read that this function is not called on DLL load/unload in EKA2.

So now I need another way to achieve my task. My goal is to create some mechanism, which can be embedded in 3rd party applications. This mechanism should be called on application start, perform some check (presence of specific Symbian server), and if the check is failed, it should terminate the application. Another requirement is that this mechanism should be transparent at best to developers of those 3rd party applications. (The E32Dll() function was the best candidate – just link specific library to a project and you’re done…)

I’ll greatly appreciate any other ideas. Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T18:43:36+00:00Added an answer on May 17, 2026 at 6:43 pm

    I am not sure that doing something in E32Dll() even it work (but it doesn’t as you figure out) is a good way, because prior to closing the application you have to show some notification or dialog to the user. Why not making a normal DLL + thin start-up code, which will load (using the RLibrary) and call the 1st ordinal function:

    RLibrary library;
    
    //UID
    TUidType uidType( TUid::Uid(KDynamicLibraryUidValue), 
                      TUid::Uid(KMyInterfaceUid), 
                      TUid::Uid(KMyImplementationUid) );
    
    // Open dll 
    User::LeaveIfError( library.Load( KMyDll, uidType ) );
    
    // Check the exported method      
    TLibraryFunction ordinal1 = aLibrary.Lookup( 1 );
    
    // Call the method...
    if ( ordinal1 )
        ordinal1();
    
    library.Close();
    

    BR
    STeN


    Hi Haspemulator, There is my answer to your comment:

    1) No, the 1st ordinal is not E32Dll(), this method cannot be called since EKA2. Check the description below (http://developer.symbian.org/wiki/Symbian_OS_Internals/10._The_Loader):

    Note that, in EKA2, the public DLL entry-point, E32Dll(TDllReason) is no longer invoked. This function must be present in every EKA1 DLL, to be called when the DLL is attached to or detached from a process or thread. Unfortunately, this entry-point system cannot provide any guarantees that E32Dll() will be called with the appropriate parameter at the specified time. Because it is not possible to support this functionality reliably, EKA2 removes support for it. This removal simplifies the kernel-side architecture for managing dynamically loaded code, which improves reliability and robustness.

    2) You can find an interesting discussion regarding this topic also here:
    http://discussion.forum.nokia.com/forum/showthread.php?80781-What-is-the-replacement-for-E32Dll-and-TDllReason

    3) In our case the 1st ordinal will be the 1st function you will export from the DLL. You can find information how to write such a DLL here:
    http://developer.symbian.org/main/documentation/reference/s3/pdk/GUID-4A56B285-790E-5171-88F3-8C40B2AA9699.html

    4) To be more concrete what I mean by exporting a method from DLL check the code below (the method can of course return some variable – e.g. newly created object):

    EXPORT_C void InitDll()
    {
      // Put here your code 
    }
    

    Hope it helps…
    BR
    STeN


    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently my AJAX is working like this: index.php <a href='one.php' class='ajax'>One</a> <div id=workspace>workspace</div> one.php
Currently it just displays the name of the application and I want it to
Currently my web.config has this: <appSettings> <add key=UserName /> <add key=DBServer /> <add key=DBUserName
Currently im having this for displaying my statusmessages: <?php while($showSe = mysql_fetch_array($stringUSS)) { ?>
Currently I'm storing the settings for my custom addins in the registry but this
Currently I have a service that uses a UserNamePasswordValidator to authenticate the client user.
Currently I have three tables. GrandParent( tel int, G_Counter int, GField varchar(10)); Parent( tel
Currently having problems with jQuery Ajax calls. It's stuck at beforeSend , no alert
Currently stuck in C# 2, it would still be nice to use the parallel
Currently I am doing one query, with 3 sub queries, all queries are on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.