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?
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?
Which SDK is that?
-- Lucian
Hi ltomuta
It was 3rd MR SDK. I'll try installing other SDK to see if the file is there.
Yes this lib is missing some how from all SDKs.
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?
from header it seems like it is Open to 3rd party developers.
Hmm.. I doubt it.. Sometimes what's public and non public is not clear :(
The lib was found on SDK 7.0s S60 v2.0
fiuhh...
Don't know why they removed this lib.
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.
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).
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. :(
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();