Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2007

    export struct to a dll

    I have to create a dll, and so I add EXPORT_C macro in front of each exported function implementation. I want to export a struct, too, but if I use EXPORT_C in front of the struct declaration compilation fails. How can I do it?

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: export struct to a dll

    This is one of the differences between function implementation and struct declaration. You might want to supply a header file with your .dll and that header can actually contain struct declaration (and likely an IMPORT_C line for your exported method).

  3. #3
    Registered User
    Join Date
    May 2008

    Re: export struct to a dll


    struct TPerson{
    IMPORT_C TBuf<20> Name;
    IMPORT_C TBuf<20> Age;
    IMPORT_C TBuf<20> Phone;

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  3. Query On DLL EXPORT
    By symsahoo in forum Symbian
    Replies: 0
    Last Post: 2005-07-15, 08:10
  4. D211 : Compiling the user interface for Linux...?
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-09, 11:48
  5. what happens to TLS when DLL is unloaded?
    By rtillitt in forum Symbian
    Replies: 1
    Last Post: 2002-11-27, 12:11

Posting Permissions

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