×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    87

    problem while EXPORTing

    hi friends .........
    i have added some new methods in my own DLL .i can able to invoke the existing method in my DLL into application.but i was not able to invoke the new method .further if i invoke it .,its showing error as.......
    Undefined symbol: 'void CSRMLogger::BufferFlush(void) (?BufferFlush@CSRMLogger@@SAXXZ)'
    here BufferFlush(void) is a new method i have introduced into my DLL...
    CSRMLogger is my class name has been used in my own DLL.
    This is the method i newly introduced .... in DLL.this function i unable to access in my application.............
    EXPORT_C void CSRMLogger::BufferFlush()
    {
    CSRMLogger* buffer ;
    buffer->BufFlush();

    }
    .........please give the solution..........
    Last edited by maheskumar; 2011-01-12 at 11:27.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,748

    Re: problem while EXPORTing

    If CSRMLogger is a freshly created class, and all of its methods are "undefined", make sure that its .cpp file is actually referred in the .mmp.

    EDIT: sorry, now I see, it is an already existing one.
    In this case, can it happen that your .dll is frozen already? In this case the import library is created from the .def files, which do not contain the new method. You have to delete the .def files, and freeze the .dll again. For development purposes you can also use the EXPORTUNFROZEN keyword in the .mmp, which always generates new .lib files.

  3. #3
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    87

    Re: problem while EXPORTing

    i deleted the .def file as so many times .. even though the problem is not yet resolved...
    Edit :
    In which mmp file(DLL or EXE) i have to add the keyword EXPORTUNFROZEN

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

    Re: problem while EXPORTing

    Quote Originally Posted by maheskumar View Post
    In which mmp file(DLL or EXE) i have to add the keyword EXPORTUNFROZEN
    Of the .dll.

  5. #5
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    87

    Re: problem while EXPORTing

    in .h file i declared the func.. like IMPORT_C static void BufferFlush();
    in .cpp file
    EXPORT_C void CSRMLogger::BufferFlush()
    {
    CSRMLogger* buffer ;
    buffer->BufFlush();

    }
    there is no effect by this keyword all the funcs are frozed .. even though i was not able to access this func.. into my application...............

  6. #6
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    87

    Re: problem while EXPORTing

    now there is no problem with EXPORT_C ....thanks for yr kindful reply,,,
    but now the problem is ...i can able to call the particular method .. but inside the method when i call one function like ..logger->DoWrite()...application is closed(Emulator shows KERN-EXC-3... while closing...).. i am not able to get the desired output......
    Last edited by maheskumar; 2011-01-13 at 05:14.

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,174

    Re: problem while EXPORTing

    You haven't explained the problem clearly. You should have pasted the code inside DoWrite(). Also, you can debug and check at which line the application is getting closed.

  8. #8
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: problem while EXPORTing

    Have you allocated logger?

Similar Threads

  1. Problem with exporting a class function
    By swapnil_mahajan in forum Symbian
    Replies: 5
    Last Post: 2009-07-10, 13:44
  2. problem in exporting contact to vcard having Photo
    By Nemat in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2008-10-18, 12:52
  3. Problem exporting calendar entries!
    By b0ssY in forum Symbian
    Replies: 1
    Last Post: 2007-06-15, 07:05
  4. Exporting SMSs
    By tbel in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-08-27, 12:50

Posting Permissions

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