Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Path for ATL COM Application Pin
kiranin9-Nov-06 22:07
kiranin9-Nov-06 22:07 
AnswerRe: Path for ATL COM Application Pin
David Crow10-Nov-06 3:57
David Crow10-Nov-06 3:57 
GeneralRe: Path for ATL COM Application Pin
kiranin16-Nov-06 22:38
kiranin16-Nov-06 22:38 
GeneralRe: Path for ATL COM Application Pin
David Crow17-Nov-06 4:12
David Crow17-Nov-06 4:12 
QuestionOutlook Addin Reading Maill Pin
Mahesh Kulkarni9-Nov-06 17:09
Mahesh Kulkarni9-Nov-06 17:09 
AnswerRe: Outlook Addin Reading Maill Pin
dharani9-Nov-06 17:24
dharani9-Nov-06 17:24 
GeneralRe: Outlook Addin Reading Maill Pin
Mahesh Kulkarni9-Nov-06 17:49
Mahesh Kulkarni9-Nov-06 17:49 
AnswerRe: Outlook Addin Reading Maill [modified] Pin
_AnsHUMAN_ 9-Nov-06 18:15
_AnsHUMAN_ 9-Nov-06 18:15 
You will have to initialize the CComQIPtr Application pointer with the object from Outlook. What I can assume from your code is that you are not initializing this pointer with the outlook object. How does your application know that it has to get an instance for outlook, so this fails and then when you do something to get the subject it causes an exception to be thrown.
you can also try debugging your application.
Try something like this. I haven't checked the code but it might help you.

CComQIPtr<Outlook::_Application> spApp;
HRESULT hr = spApp.CoCreateInstance(__uuidof(Application));
if (FAILED(hr)){
MessageBox("Unable to instantiate Outlook.","Outlook Error",MB_OK);
return 0;
}
-- modified at 0:30 Friday 10th November, 2006
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
Questionown defined class meets error.(ComboBox) Pin
sting_lee9-Nov-06 17:03
sting_lee9-Nov-06 17:03 
AnswerRe: own defined class meets error.(ComboBox) Pin
dharani9-Nov-06 17:29
dharani9-Nov-06 17:29 
AnswerRe: own defined class meets error.(ComboBox) Pin
Hamid_RT9-Nov-06 18:28
Hamid_RT9-Nov-06 18:28 
QuestionRegister ATL COM dll in MFC Application Pin
kiranin9-Nov-06 16:41
kiranin9-Nov-06 16:41 
AnswerRe: Register ATL COM dll in MFC Application Pin
dharani9-Nov-06 16:46
dharani9-Nov-06 16:46 
AnswerRe: Register ATL COM dll in MFC Application Pin
dharani9-Nov-06 16:50
dharani9-Nov-06 16:50 
GeneralRe: Register ATL COM dll in MFC Application Pin
kiranin9-Nov-06 16:54
kiranin9-Nov-06 16:54 
GeneralRe: Register ATL COM dll in MFC Application Pin
dharani9-Nov-06 17:08
dharani9-Nov-06 17:08 
GeneralRe: Register ATL COM dll in MFC Application Pin
kiranin9-Nov-06 17:15
kiranin9-Nov-06 17:15 
AnswerRe: Register ATL COM dll in MFC Application Pin
Mike_9999-Nov-06 21:41
Mike_9999-Nov-06 21:41 
QuestionCWebBrowser2::Navigate() Pin
includeh109-Nov-06 16:27
includeh109-Nov-06 16:27 
AnswerRe: CWebBrowser2::Navigate() Pin
dharani9-Nov-06 17:38
dharani9-Nov-06 17:38 
AnswerRe: CWebBrowser2::Navigate() Pin
Shivaji Patil9-Nov-06 20:10
professionalShivaji Patil9-Nov-06 20:10 
Questionwhat's the CALLBACK Pin
Shi Zhu9-Nov-06 16:24
Shi Zhu9-Nov-06 16:24 
AnswerRe: what's the CALLBACK Pin
Christian Graus9-Nov-06 16:26
protectorChristian Graus9-Nov-06 16:26 
AnswerRe: what's the CALLBACK Pin
Bram van Kampen9-Nov-06 17:24
Bram van Kampen9-Nov-06 17:24 
AnswerRe: what's the CALLBACK Pin
Hamid_RT9-Nov-06 18:26
Hamid_RT9-Nov-06 18:26 

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.