Discussion Board

Results 1 to 14 of 14
  1. #1
    Regular Contributor strike_noir's Avatar
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269
    Hi FN

    I want to use the CContactVCardConverter but I can't find the cntvcard.lib anywhere in the SDK. Does anyone know where can I find the lib?

  2. #2
    Nokia Developer Moderator ltomuta's Avatar
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,335
    Which SDK is that?

  3. #3
    Regular Contributor strike_noir's Avatar
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269
    Hi ltomuta

    It was 3rd MR SDK. I'll try installing other SDK to see if the file is there.

  4. #4
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Yes this lib is missing some how from all SDKs.

  5. #5
    Regular Contributor strike_noir's Avatar
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269
    OK then, we know the documentation has this. And none of the SDK has the lib (I have installed 2nd FP2, 3rd MR, 3rd FP2, UIQ3.0).

    Is this API needs partnering(non public)? If it is, why is it documented in the public documentation?

  6. #6
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    from header it seems like it is Open to 3rd party developers.

  7. #7
    Regular Contributor strike_noir's Avatar
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269
    Hmm.. I doubt it.. Sometimes what's public and non public is not clear :(

  8. #8
    Regular Contributor strike_noir's Avatar
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269
    The lib was found on SDK 7.0s S60 v2.0

    fiuhh...

    Don't know why they removed this lib.

  9. #9
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by strike_noir View Post
    Hmm.. I doubt it.. Sometimes what's public and non public is not clear :(
    /**
    Plug-in vCard to CContactItem converter.
    @publishedAll
    @released
    */
    header says it is 3rdparty API. else header is wrong.

  10. #10
    Regular Contributor strike_noir's Avatar
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269
    In 3rd Edition the cntvcard.lib is a dll. I didn't know this, the documentation says it need a lib (not a dll). So to use this API just put cntvcard.dll to the mmp.

  11. #11
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by strike_noir View Post
    In 3rd Edition the cntvcard.lib is a dll. I didn't know this, the documentation says it need a lib (not a dll). So to use this API just put cntvcard.dll to the mmp.
    Dll in MMP File ?? i heard it 1st time.

  12. #12
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    Quote Originally Posted by skumar_rao View Post
    Dll in MMP File ?? i heard it 1st time.
    Hopefully the last too. That makes not much sense, Symbian .dll-s contain almost no information about their contents (no method names, etc.).

    CContactVCardConverter currently seems to be an ECOM plugin (have not checked with older SDK-s, but now it is "class CContactVCardConverter : public CContactEcomConverter"), thus it can most likely be used without having a .lib file (though I have not checked how it should be used indeed).

  13. #13
    Regular Contributor strike_noir's Avatar
    Join Date
    Jun 2007
    Location
    Jakarta, Indonesia
    Posts
    269
    Yes you're right. It doesn't need the dll (carelessly I didn't test the code without removing the cntvcard.lib/cntvcard.dll from the mmp). Too much believing it need a lib/dll to be linked to. :(

  14. #14
    Registered User mike.b's Avatar
    Join Date
    Jul 2003
    Posts
    190
    Create the class as ecom plugin:

    Code:
             
    REComSession *ecom = &REComSession::OpenL();
    RImplInfoPtrArray ia;
    TRAPD(err, REComSession::ListImplementationsL(KUidEcomCntVCardConverterInterface, ia));
    
    class C_ECom_interface{
       virtual ~C_ECom_interface() = 0;
       TUid uid;
    };
    
    if(ia.Count()){
       TRAPD(err, cnt = (CContactVCardConverter*)REComSession::CreateImplementationL(ia[0]->ImplementationUid(), OffsetOf(C_ECom_interface, uid)));
    }
    for(int i=ia.Count(); i--; ) delete ia[i];
    ia.Close();
    
    .... (use cnt)
    
    delete cnt;
    
    ecom->Close();
    REComSession::FinalClose();

Similar Threads

  1. GoogleIt
    By deepika.mangla in forum Symbian C++
    Replies: 5
    Last Post: 2011-05-28, 11:04
  2. Prototype SDK 2.0 setup problem
    By jackmcardle in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2007-01-09, 16:21
  3. SyExpat + problem + memmove + Carbide Express
    By pearman in forum Symbian C++
    Replies: 2
    Last Post: 2006-10-14, 22:21
  4. Problems with errno module
    By tsharju in forum Python
    Replies: 1
    Last Post: 2005-10-21, 11:24
  5. can not successfully link any sample using .NET
    By lobotomat in forum Symbian Tools & SDKs
    Replies: 2
    Last Post: 2002-08-20, 00:29

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved