Click here to Skip to main content
15,925,181 members
Home / Discussions / COM
   

COM

 
GeneralDesperate help with Windows Media Format SDK Pin
Emiliano9-Oct-03 5:24
Emiliano9-Oct-03 5:24 
Generalhelp with activex and vb.net Pin
Mithun_Patel9-Oct-03 4:33
Mithun_Patel9-Oct-03 4:33 
Generalhelp!!!!!!!!!!!!! Pin
Mithun_Patel9-Oct-03 4:32
Mithun_Patel9-Oct-03 4:32 
GeneralIs it possible for a client application to inherit COM classes Pin
siepaoling7-Oct-03 6:00
siepaoling7-Oct-03 6:00 
GeneralUsing existing running programs instead of creating new ones Pin
jparsons6-Oct-03 5:45
jparsons6-Oct-03 5:45 
GeneralRe: Using existing running programs instead of creating new ones Pin
valikac6-Oct-03 5:54
valikac6-Oct-03 5:54 
GeneralRe: Using existing running programs instead of creating new ones Pin
Vi27-Oct-03 1:19
Vi27-Oct-03 1:19 
GeneralRe: Using existing running programs instead of creating new ones Pin
jparsons8-Oct-03 12:10
jparsons8-Oct-03 12:10 
GeneralRe: Using existing running programs instead of creating new ones Pin
Vi210-Oct-03 3:36
Vi210-Oct-03 3:36 
QuestionHow Adobe ActiveX Control is activated when We drop *.pdf file in Browser Pin
Umesh Kr. Sharma6-Oct-03 5:44
Umesh Kr. Sharma6-Oct-03 5:44 
AnswerRe: How Adobe ActiveX Control is activated when We drop *.pdf file in Browser Pin
Ernest Laurentin6-Oct-03 7:34
Ernest Laurentin6-Oct-03 7:34 
GeneralRe: How Adobe ActiveX Control is activated when We drop *.pdf file in Browser Pin
Umesh Kr. Sharma7-Oct-03 1:12
Umesh Kr. Sharma7-Oct-03 1:12 
GeneralRe: How Adobe ActiveX Control is activated when We drop *.pdf file in Browser Pin
igor196017-Oct-03 12:52
igor196017-Oct-03 12:52 
GeneralSupport for ActiveX in MFC projects Pin
Ed016-Oct-03 2:24
Ed016-Oct-03 2:24 
GeneralRe: Support for ActiveX in MFC projects Pin
Steve S6-Oct-03 3:01
Steve S6-Oct-03 3:01 
GeneralRe: Support for ActiveX in MFC projects Pin
Ed016-Oct-03 3:20
Ed016-Oct-03 3:20 
GeneralAccessing a file's properties from a VC++ application Pin
jopett5-Oct-03 20:35
jopett5-Oct-03 20:35 
GeneralRe: Accessing a file's properties from a VC++ application Pin
algol14-Oct-03 21:59
algol14-Oct-03 21:59 
GeneralCOM Dialog box Pin
Anthony98873-Oct-03 8:48
Anthony98873-Oct-03 8:48 
GeneralRe: COM Dialog box Pin
Abhishek Srivastava19-Oct-03 21:01
Abhishek Srivastava19-Oct-03 21:01 
GeneralUse of CommandButton Active X Pin
Jo Fredrickson2-Oct-03 20:37
Jo Fredrickson2-Oct-03 20:37 
GeneralRe: Use of CommandButton Active X Pin
Amit Dey8-Oct-03 10:41
Amit Dey8-Oct-03 10:41 
GeneralIApplication woes Pin
AndyP12-Oct-03 0:36
AndyP12-Oct-03 0:36 
GeneralRe: IApplication woes Pin
AndyP12-Oct-03 5:16
AndyP12-Oct-03 5:16 
GeneralAn Outlook plug-in issue Pin
dorutzu1-Oct-03 8:04
dorutzu1-Oct-03 8:04 
Hi,

I'm witting an Outlook plugin in VC++, using ATL.
When a button in outlook is pressed, my plug-in will create a new mail, or reply to the selected one, or forward it. Now, the problem is that after generating this new window(for new mail, reply or fwd), when I close Outlook, another instance of Outlook remains somewhere running (I see it in Task Manager, and I have to close it form there). Any ideea what do wrong? Here is part of my code from the reply command:

for(int i=1; i<=lItemCount; i++)
{
CComPtr<idispatch> spDisp;
CComVariant vt(i); //get selected item number i
hr = spSelection->Item(vt, &spDisp);
if(FAILED(hr))
return;
CComQIPtr< Outlook::_MailItem > spMailItem(spDisp);
CComPtr<outlook::_mailitem> spMailItem2;
if(FAILED(hr))
return;
if(spMailItem!=NULL)
{
spMailItem->Reply(&spMailItem2);
BSTR subj;
spMailItem->get_Subject(&subj);
CString str = "Re:";
str += W2T(subj);
spMailItem2->put_Subject(T2W(str));
BSTR htmlBody;
spMailItem->get_HTMLBody(&htmlBody);
str = ReadHTMLIntoString((CString)W2T(bstrMSname)); //insert the Reply .html
str += "


Original text:

"; //something between our text and the original text
str += W2T(htmlBody);
htmlBody = T2W(str);
spMailItem2->put_HTMLBody(htmlBody);
spMailItem2->Display();
}
spMailItem2.Detach();
spMailItem.Detach();
spDisp.Detach();
}

I think something should be done with spMailItem2, but I just don't know what.

I would really appreciate any help.

Thanks,
Doru K

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.