×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Carbide and DLLs??

    Hi all,

    I have created a symbian dll project in carbide, and would like to use it in another project. I haven't found info on the necessary steps to link my dll to a project. First of all, do I have to use a special build configuration for the dll? As far as I understand I have to get the dll and the lib (dso?) file to the urel folder - how can I achieve this in carbide? Where can I find more info on this?

    Thanks

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

    Re: Carbide and DLLs??

    Welcome to the Forum Nokia Developer Discussion boards.

    Add #include to the header file where APIs (which you are using) are defined and link against the .lib file.

    PS: на форуме существует раздел раздел на русском языке - Форум Российских разработчиков, если что.

  3. #3
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Re: Carbide and DLLs??

    Quote Originally Posted by A.A.M. View Post
    Welcome to the Forum Nokia Developer Discussion boards.

    Add #include to the header file where APIs (which you are using) are defined and link against the .lib file.

    PS: на форуме существует раздел раздел на русском языке - Форум Российских разработчиков, если что.
    And what kind of build would I need? How would I make carbide put the dll and lib in the urel folder?

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

    Re: Carbide and DLLs??

    If you want to test your application and your dll on emulator then firstly build dll for WINSCW platform, after that build test application for WINSCW platform.

    If you want to test app/dll on device then use "Phone Release (or Debug) (GCCE)" configuration.

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Re: Carbide and DLLs??

    Ok, I did the WINSCW build, and I have managed to link my DLL to the project but I have 2 problems now:
    (My DLL is just the example DLL project that carbide generates, and I have a test project for this DLL)
    1. The emulator just crashes when in the test project it reaches CMyDLL* t = CMyDLL::NewLC(); (sometimes it gives system error (-1))
    2. The least serious problem: When I try to add new functions to the DLL, carbide won't recognize them (It will not color them). I tried freezing, building, deleting the generated files but nothing helps

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

    Re: Carbide and DLLs??

    Which dll type you trying to create (static or dynamically linked library)?

    Also check examples provided with SDK - <path_to_SDK>\Examples\Base\DLLs\

  7. #7
    Registered User
    Join Date
    Jul 2009
    Posts
    4

    Re: Carbide and DLLs??

    Quote Originally Posted by A.A.M. View Post
    Which dll type you trying to create (static or dynamically linked library)?

    Also check examples provided with SDK - <path_to_SDK>\Examples\Base\DLLs\
    Right now I'm trying to make the static dll work. I think I understand the structure of the dll project, but my problem is with carbide. I suspect that I am missing something with the build (because the lib of the dll appears after a couple of builds and freezes, which is weird)

Similar Threads

  1. Debugginh singed DLLS ..
    By rubizm in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2009-01-25, 18:37
  2. Project layout in Carbide C/C++
    By fimikharj in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2008-08-29, 10:27
  3. How to on-target (hw) debug with dll's in carbide
    By mwaqas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2007-10-23, 13:44
  4. Carbide: UIQ and S60 builds from same bld?
    By rboxall in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2007-08-10, 05:18
  5. Carbide 2.0.1 Hotfix problem
    By tal.shahar@mobile-mx.com in forum Symbian
    Replies: 1
    Last Post: 2007-01-02, 10:58

Posting Permissions

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