contacts access

Login to reply to this topic.
Fri, 2004-10-08 08:41
Joined: 2004-10-08
Forum posts: 1
i am having a difficulty in accessing the contacts info
in symbian 8 using :
CContactDatabase *oContact = CContactDatabase::OpenL(ESingleThred);

..
given an err that ESingleThread is undeclared identifier
i have included "cntdb.h"
and the reqd .lib file
Wat cud be the reason

Fri, 2004-10-08 08:50
Joined: 2003-09-29
Forum posts: 32
contacts access
The ESingleThread is the default parameter so you don't necessary have to provide it. However, if you want to provide the parameter, then you should notice that the TThreadAccess enumeration is inside the CContactDatabase class. So correct open call would be:
Code:
CContactDatabase* db = CContactDatabase::OpenL(CContactDatabase::ESingleThread);

Jari

  • Login to reply to this topic.