Click here to Skip to main content
15,891,253 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
KarstenK22-Oct-09 21:38
mveKarstenK22-Oct-09 21:38 
JokeRe: Visual C++ Express, No MFC? Does that matter? Pin
Moak24-Oct-09 1:34
Moak24-Oct-09 1:34 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
KarstenK25-Oct-09 21:28
mveKarstenK25-Oct-09 21:28 
Questionproblem in splitter Pin
bagavathikumar22-Oct-09 1:43
bagavathikumar22-Oct-09 1:43 
AnswerRe: problem in splitter [modified] Pin
Iain Clarke, Warrior Programmer23-Oct-09 4:43
Iain Clarke, Warrior Programmer23-Oct-09 4:43 
QuestionMFC using Visual Studio 2005 Pin
RS.Ratheesh22-Oct-09 1:36
RS.Ratheesh22-Oct-09 1:36 
AnswerRe: MFC using Visual Studio 2005 Pin
Randor 22-Oct-09 2:04
professional Randor 22-Oct-09 2:04 
QuestionOutlook Contacts Pin
Anil Kumar.Arvapalli22-Oct-09 1:27
Anil Kumar.Arvapalli22-Oct-09 1:27 
Hi Friends,

Iam devloping a application where i want to write some set of contacts to outlook, where i tried off but unable to write it can any body help me out.

Procedre what i did.
1. created a session sucessfully
2. opned message store
3. opened contacts folder in outlook
4. stored that pointer into variable called m_pUser
5. with that pointer iam writing st of properties and saving it into the contacts folder.

Iam sure with the first three steps please go through 4 and 5 steps and help me out please.

Here i my core logic

::HrGetOneProp(MsgStore,PR_IPM_SUBTREE_ENTRYID,&propval);
MsgStore->OpenEntry(propval->Value.bin.cb,LPENTRYID(propval->Value.bin.lpb),0,MAPI_MODIFY,&ulObjType,(LPUNKNOWN*)&RootFolder);
hr=RootFolder->CreateFolder(FOLDER_GENERIC,(LPTSTR)"Contacts",NULL,0,OPEN_IF_EXISTS ,&ContactsFolder);
cout<<hr;
IMailUser *m_pUser = NULL;
hr=ContactsFolder->OpenEntry(propval->Value.bin.cb,LPENTRYID(propval->Value.bin.lpb),0,MAPI_BEST_ACCESS,&ulObjType,(LPUNKNOWN*)&m_pUser);
if(FAILED(hr))
{
cout<<"FAiled to Oen Contacts Folder";
}
SPropValue prop;
prop.ulPropTag=PR_DISPLAY_NAME;
prop.Value.lpszW=(LPTSTR)"ROCK";
m_pUser->SetProps(1,&prop,NULL);

prop.ulPropTag=PR_PRIMARY_TELEPHONE_NUMBER;
prop.Value.lpszW=(LPTSTR)"999999999999";
m_pUser->SetProps(1,&prop,NULL);

prop.ulPropTag=PR_BUSINESS_TELEPHONE_NUMBER;
prop.Value.lpszW=(LPTSTR)"1234567";
m_pUser->SetProps(1,&prop,NULL);

m_pUser->SaveChanges(true);

m_pUser->Release();





Can some body provide me any samples for referece so that i will be helpfull for me.


Thank in ADvance.
AnswerRe: Outlook Contacts Pin
KarstenK22-Oct-09 22:30
mveKarstenK22-Oct-09 22:30 
QuestionWrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
__yash__22-Oct-09 1:15
professional__yash__22-Oct-09 1:15 
AnswerRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
CPallini22-Oct-09 1:44
mveCPallini22-Oct-09 1:44 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
__yash__22-Oct-09 1:50
professional__yash__22-Oct-09 1:50 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
CPallini22-Oct-09 1:52
mveCPallini22-Oct-09 1:52 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
__yash__22-Oct-09 2:05
professional__yash__22-Oct-09 2:05 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
David Crow22-Oct-09 2:48
David Crow22-Oct-09 2:48 
AnswerRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
SandipG 22-Oct-09 1:57
SandipG 22-Oct-09 1:57 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
__yash__22-Oct-09 2:02
professional__yash__22-Oct-09 2:02 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
SandipG 22-Oct-09 2:09
SandipG 22-Oct-09 2:09 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
Covean22-Oct-09 2:29
Covean22-Oct-09 2:29 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
__yash__22-Oct-09 2:40
professional__yash__22-Oct-09 2:40 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
SandipG 22-Oct-09 2:44
SandipG 22-Oct-09 2:44 
GeneralRe: Wrong evaluation of pre- and post-increment on variables: What is wrong here?!?! Pin
Covean22-Oct-09 2:48
Covean22-Oct-09 2:48 
GeneralHow do you interpret the results (I have provided my comments) Pin
__yash__22-Oct-09 2:35
professional__yash__22-Oct-09 2:35 
GeneralRe: How do you interpret the results (I have provided my comments) Pin
SandipG 22-Oct-09 2:45
SandipG 22-Oct-09 2:45 
GeneralRe: How do you interpret the results (I have provided my comments) Pin
Covean22-Oct-09 2:45
Covean22-Oct-09 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.