Click here to Skip to main content
16,005,467 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to initialize _TCHAR array Pin
Boaz V27-Sep-05 0:42
Boaz V27-Sep-05 0:42 
QuestionUse of Narrator and other screen readers Pin
greekgoddj26-Sep-05 23:27
greekgoddj26-Sep-05 23:27 
QuestionHelp hooking Windows API functions Pin
JaVinci26-Sep-05 23:27
JaVinci26-Sep-05 23:27 
AnswerRe: Help hooking Windows API functions Pin
Laffis26-Sep-05 23:41
Laffis26-Sep-05 23:41 
GeneralRe: Help hooking Windows API functions Pin
ThatsAlok27-Sep-05 1:42
ThatsAlok27-Sep-05 1:42 
QuestionTo save & restore Files and Folders Pin
rajeevktripathi26-Sep-05 23:16
rajeevktripathi26-Sep-05 23:16 
AnswerRe: To save & restore Files and Folders Pin
AHawk26-Sep-05 23:56
AHawk26-Sep-05 23:56 
QuestionUndeclared Identifier Pin
rajeevktripathi26-Sep-05 23:04
rajeevktripathi26-Sep-05 23:04 
Hi All

I am using Outlook object model in order to access MS outlook folders and other informations.

Here I have imported "mso.dll & msoutl.olb" files.

Then I am using code as below
<br />
<br />
void CMSOutlookDlg::AddFolders( )<br />
{<br />
<br />
     _ApplicationPtr pApp;<br />
	_ItemsPtr       pItems;<br />
	MAPIFolder      pFolder;<br />
	_ContactItemPtr pContact;<br />
<br />
      hr = pApp.CreateInstance(__uuidof(Application));<br />
     <br />
}<br />
<br />


then it gives error

<br />
f:\msoutlook\debug\mso.tlh(1036) : warning C4146: unary minus operator applied to unsigned type, result still unsigned<br />
F:\MSOutlook\MSOutlookDlg.cpp(131) : error C2065: '_ApplicationPtr' : undeclared identifier<br />
F:\MSOutlook\MSOutlookDlg.cpp(131) : error C2146: syntax error : missing ';' before identifier 'pApp'<br />
F:\MSOutlook\MSOutlookDlg.cpp(131) : error C2065: 'pApp' : undeclared identifier<br />
F:\MSOutlook\MSOutlookDlg.cpp(132) : error C2065: '_ItemsPtr' : undeclared identifier<br />
F:\MSOutlook\MSOutlookDlg.cpp(132) : error C2146: syntax error : missing ';' before identifier 'pItems'<br />
F:\MSOutlook\MSOutlookDlg.cpp(132) : error C2065: 'pItems' : undeclared identifier<br />
F:\MSOutlook\MSOutlookDlg.cpp(133) : error C2065: 'MAPIFolder' : undeclared identifier<br />
F:\MSOutlook\MSOutlookDlg.cpp(133) : error C2146: syntax error : missing ';' before identifier 'pFolder'<br />
F:\MSOutlook\MSOutlookDlg.cpp(133) : error C2065: 'pFolder' : undeclared identifier<br />
F:\MSOutlook\MSOutlookDlg.cpp(135) : error C2065: '_ContactItemPtr' : undeclared identifier<br />
F:\MSOutlook\MSOutlookDlg.cpp(135) : error C2146: syntax error : missing ';' before identifier 'pContact'<br />
F:\MSOutlook\MSOutlookDlg.cpp(135) : error C2065: 'pContact' : undeclared identifier<br />
Generating Code...<br />
Error executing cl.exe.<br />
Creating browse info file...<br />
<br />
MSOutlook.exe - 12 error(s), 1 warning(s)<br />



Please help me that why is this happening?
Also if u have some sample to retrieve folders & message of MS outlook then pls provide it

Thanks
AnswerRe: Undeclared Identifier Pin
Roger Stoltz26-Sep-05 23:25
Roger Stoltz26-Sep-05 23:25 
AnswerRe: Undeclared Identifier Pin
toxcct26-Sep-05 23:34
toxcct26-Sep-05 23:34 
AnswerRe: Undeclared Identifier Pin
prasad_som26-Sep-05 23:36
prasad_som26-Sep-05 23:36 
QuestionRegister File Type in Registry Pin
kk.tvm26-Sep-05 22:27
kk.tvm26-Sep-05 22:27 
AnswerRe: Register File Type in Registry Pin
Blake Miller27-Sep-05 4:30
Blake Miller27-Sep-05 4:30 
QuestionAggregate compiler problem... Pin
toxcct26-Sep-05 22:13
toxcct26-Sep-05 22:13 
GeneralRe: Aggregate compiler problem... Pin
prasad_som26-Sep-05 23:14
prasad_som26-Sep-05 23:14 
GeneralRe: Aggregate compiler problem... Pin
toxcct26-Sep-05 23:40
toxcct26-Sep-05 23:40 
AnswerRe: Aggregate compiler problem... Pin
Roger Stoltz26-Sep-05 23:19
Roger Stoltz26-Sep-05 23:19 
GeneralRe: Aggregate compiler problem... Pin
toxcct26-Sep-05 23:29
toxcct26-Sep-05 23:29 
Questionhow to upgrade a lib from vc6 version to vc7's? Pin
tankwan26-Sep-05 22:08
tankwan26-Sep-05 22:08 
QuestionUnable open the files (*.h and *.cpp) for class *dlg Pin
wenhou26-Sep-05 21:48
wenhou26-Sep-05 21:48 
AnswerRe: Unable open the files (*.h and *.cpp) for class *dlg Pin
Cool Ju27-Sep-05 18:23
Cool Ju27-Sep-05 18:23 
Questionhow to check radio button in another dialog Pin
tamsel26-Sep-05 21:21
tamsel26-Sep-05 21:21 
AnswerRe: how to check radio button in another dialog Pin
AHawk26-Sep-05 22:42
AHawk26-Sep-05 22:42 
AnswerRe: how to check radio button in another dialog Pin
ThatsAlok26-Sep-05 23:39
ThatsAlok26-Sep-05 23:39 
Questionprinting from CScrollView Pin
vikas amin26-Sep-05 21:06
vikas amin26-Sep-05 21:06 

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.