Click here to Skip to main content
15,917,645 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionproperties Pin
zildjohn015-Sep-05 13:37
zildjohn015-Sep-05 13:37 
AnswerRe: properties Pin
Christian Graus5-Sep-05 13:44
protectorChristian Graus5-Sep-05 13:44 
Questionicon Pin
Anonymous5-Sep-05 11:14
Anonymous5-Sep-05 11:14 
AnswerRe: icon Pin
oustar5-Sep-05 15:19
oustar5-Sep-05 15:19 
General[Message Deleted] Pin
Ali Tavakol5-Sep-05 19:57
Ali Tavakol5-Sep-05 19:57 
AnswerRe: icon Pin
toxcct5-Sep-05 21:17
toxcct5-Sep-05 21:17 
QuestionDirectX OverLay ? Pin
seq-5-Sep-05 11:08
seq-5-Sep-05 11:08 
QuestionAddstore() [Outlook Automation] problem Pin
_kane_5-Sep-05 10:25
_kane_5-Sep-05 10:25 
Please check the following snippet of code where I have used
AddStore() to add a pst file to a profile. This works in some pcs
while in others it fails with "Outlook faled to add the personal store
to this session". Any ideas?

<br />
_Application olApplication;<br />
_NameSpace olNameSpace;<br />
COleException e;<br />
if(!olApplication.CreateDispatch("Outlook.Application", &e)) {<br />
CString str;<br />
str.Format("CreateDispatch() failed w/error 0x%08lx", e.m_sc);<br />
AfxMessageBox(str, MB_SETFOREGROUND);<br />
//m_bLogged = FALSE;<br />
}<br />
else {<br />
// Logon. Doesn't hurt if you are already running and logged on..<br />
<br />
olNameSpace = olApplication.GetNamespace("MAPI");<br />
COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);<br />
olNameSpace2.Logon(covOptional2, covOptional2, covOptional2,<br />
covOptional2);<br />
}<br />
olNameSpace.AddStore(COleVariant(strDestinyPstPath));<br />
//strDestinyPstPath contains the path to the PST file.<br />


Thanks.

Best Regards,
kane

"Some guys hack just to get themselves a girlfriend.What a pathetic reason huh ?"
QuestionDEBUG_NEW Pin
Klempie5-Sep-05 8:27
Klempie5-Sep-05 8:27 
AnswerRe: DEBUG_NEW Pin
Bob Stanneveld5-Sep-05 9:41
Bob Stanneveld5-Sep-05 9:41 
Questionhow to get the size of an array Pin
Waleed Eissa5-Sep-05 8:00
Waleed Eissa5-Sep-05 8:00 
AnswerRe: how to get the size of an array Pin
Chris Losinger5-Sep-05 8:07
professionalChris Losinger5-Sep-05 8:07 
GeneralRe: how to get the size of an array Pin
Bob Stanneveld5-Sep-05 9:44
Bob Stanneveld5-Sep-05 9:44 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:33
Jose Lamas Rios5-Sep-05 16:33 
GeneralRe: how to get the size of an array Pin
Jose Lamas Rios5-Sep-05 16:07
Jose Lamas Rios5-Sep-05 16:07 
AnswerRe: how to get the size of an array Pin
toxcct5-Sep-05 21:20
toxcct5-Sep-05 21:20 
AnswerRe: how to get the size of an array Pin
Waleed Eissa6-Sep-05 4:56
Waleed Eissa6-Sep-05 4:56 
QuestionDraw Icon In Combo Box Pin
Skute5-Sep-05 5:58
Skute5-Sep-05 5:58 
QuestionDynamic Disk Pin
sanjaylk5-Sep-05 5:53
sanjaylk5-Sep-05 5:53 
QuestionVC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 5:24
professionalRavi Bhavnani5-Sep-05 5:24 
AnswerRe: VC6 compiler bug? Pin
Gary R. Wheeler5-Sep-05 5:35
Gary R. Wheeler5-Sep-05 5:35 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 5:45
professionalRavi Bhavnani5-Sep-05 5:45 
GeneralRe: VC6 compiler bug? Pin
Gary R. Wheeler5-Sep-05 5:49
Gary R. Wheeler5-Sep-05 5:49 
GeneralRe: VC6 compiler bug? Pin
Bob Stanneveld5-Sep-05 9:46
Bob Stanneveld5-Sep-05 9:46 
GeneralRe: VC6 compiler bug? Pin
Ravi Bhavnani5-Sep-05 9:53
professionalRavi Bhavnani5-Sep-05 9:53 

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.