Click here to Skip to main content
15,901,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari23-Oct-09 3:01
Kushagra Tiwari23-Oct-09 3:01 
QuestionRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari26-Oct-09 1:28
Kushagra Tiwari26-Oct-09 1:28 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Covean26-Oct-09 4:05
Covean26-Oct-09 4:05 
AnswerRe: Delaying Shutdown through windows service and executing scripts ? Pin
Kushagra Tiwari26-Oct-09 20:21
Kushagra Tiwari26-Oct-09 20:21 
QuestionSYBASE's Functions giving LOGIN CRASH problem in VC++ code Pin
Vetukuri Raju22-Oct-09 1:59
Vetukuri Raju22-Oct-09 1:59 
GeneralRe: SYBASE's Functions giving LOGIN CRASH problem in VC++ code Pin
CPallini22-Oct-09 2:33
mveCPallini22-Oct-09 2:33 
QuestionVisual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 1:51
mtthw22-Oct-09 1:51 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
CPallini22-Oct-09 1:53
mveCPallini22-Oct-09 1:53 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 11:02
mtthw22-Oct-09 11:02 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
Maximilien22-Oct-09 2:45
Maximilien22-Oct-09 2:45 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 11:11
mtthw22-Oct-09 11:11 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
Richard MacCutchan22-Oct-09 2:47
mveRichard MacCutchan22-Oct-09 2:47 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
mtthw22-Oct-09 11:30
mtthw22-Oct-09 11:30 
GeneralRe: Visual C++ Express, No MFC? Does that matter? Pin
Richard MacCutchan22-Oct-09 23:20
mveRichard MacCutchan22-Oct-09 23:20 
AnswerRe: Visual C++ Express, No MFC? Does that matter? Pin
David Crow22-Oct-09 2:58
David Crow22-Oct-09 2:58 
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 

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.