×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Feb 2007
    Location
    Bangalore
    Posts
    3

    Porting a dll from S60 2nd to 3rd edition

    Hi,
    While porting a dll from 2nd to 3rd edition, shall we have to change the entry point function ?? As per the porting document from nokia, only the application entry point has to be changed from TInt E32Dll( TDllReason ) to TInt E32Main(). But when I tried to compile a dll with TInt E32Dll( TDllReason ), the compiler is complaining like " undefined identifier 'TDllReason' ". Even if I change the code to
    GLDEF_C TInt E32Main()
    {
    return EikStart::RunApplication( NewApplication );
    }

    there is no NewApplication function to provide as mine is a dll which just gives some function interfaces, and not an application by itself. The compiler refuses to go ahead without NewApplication function as it says " undefined identifier 'NewApplication' ".

    How shall I proceed ??

    Thanks in advance,
    Johnson

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    India
    Posts
    1,128

    Re: Porting a dll from S60 2nd to 3rd edition

    Hi, do U have created .dso file as well as for ur application.
    I think, U need to dso file.

  3. #3
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Aalborg, Denmark
    Posts
    296

    Re: Porting a dll from S60 2nd to 3rd edition

    The TInt E32Dll(TDllReason) entry point for dll's isn't nessecary for 3rd edition.. So just make a:

    #if !defined(__SERIES60_3X__)
    TInt E32Dll(TDllReason)
    {
    return KErrNone;
    }
    #endif


    Note, E32Main() is only needed for .exe
    Last edited by mollevp; 2007-03-28 at 21:18.

  4. #4
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    70

    Re: Porting a dll from S60 2nd to 3rd edition

    Quote Originally Posted by mollevp
    The TInt E32Dll(TDllReason) entry point for dll's isn't nessecary for 3rd edition.. So just make a:

    #if defined(__WINS__)
    TInt E32Dll(TDllReason)
    {
    return KErrNone;
    }
    #endif


    Note, E32Main() is only needed for .exe
    #ifndef __SERIES60_3X__
    TInt E32Dll(TDllReason)
    {
    return KErrNone;
    }
    #endif

  5. #5
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Aalborg, Denmark
    Posts
    296

    Re: Porting a dll from S60 2nd to 3rd edition

    Yes, what a mistake - I guess a too fast c/p there..

Similar Threads

  1. Replies: 7
    Last Post: 2007-09-05, 10:38
  2. Porting from 2nd to 3rd edition
    By dakoz in forum Symbian
    Replies: 6
    Last Post: 2006-11-21, 09:50
  3. S60 2nd OR 3rd edition for new software development
    By patil_ruturaj in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-06-30, 09:30
  4. one Carbide.vs project for 2nd and 3rd edition dll
    By lkz633 in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-08, 09:13
  5. TTime : TInt64& Int64() problem in S60 3rd edition
    By iulian_moldovan in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2006-01-24, 13:07

Posting Permissions

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