Click here to Skip to main content
15,912,897 members
Home / Discussions / COM
   

COM

 
QuestionMy COM method call is killing my App Pin
earlgraham2-Nov-06 7:03
earlgraham2-Nov-06 7:03 
AnswerRe: My COM method call is killing my App Pin
Stephen Hewitt5-Nov-06 14:02
Stephen Hewitt5-Nov-06 14:02 
GeneralRe: My COM method call is killing my App Pin
earlgraham9-Nov-06 4:41
earlgraham9-Nov-06 4:41 
QuestionAccessing a C# control from C++ Pin
Metabug30-Oct-06 9:29
Metabug30-Oct-06 9:29 
Questionhow to access a COM component from ASP.net? Pin
voorugonda prashanth29-Oct-06 23:18
voorugonda prashanth29-Oct-06 23:18 
GeneralRe: how to access a COM component from ASP.net? Pin
prasad_som7-Nov-06 18:35
prasad_som7-Nov-06 18:35 
QuestionWhy the Release() don't call the class destructor? Pin
AIMrus28-Oct-06 23:56
AIMrus28-Oct-06 23:56 
QuestionHelp! My COM add-in for outlook can run only once, why? Pin
OctopusThu28-Oct-06 19:05
OctopusThu28-Oct-06 19:05 
I developed a COM add-in for Outlook 2003 with Visual Studio 2005.

I added an msoControlPopup to the menu bar of Outlook and then added an msoControlButton to the popup. The button would then initialize a Windows.Forms.Form object.

However, each time I start outlook, I can only run the add-in for once. After I close the Form, the button gave no response at all if I click it.

Some of the codes in Connect.cs are as follows:

public class Connect : Object, Extensibility.IDTExtensibility2
{

CommandBar menuBar;
CommandBarControl commandBarControl_CM;

public Connect()
{
}

public void OnDisconnection(Extensibility.ext_DisconnectMode disconnectMode, ref System.Array custom)
{
}

public void OnAddInsUpdate(ref System.Array custom)
{
}

public void OnStartupComplete(ref System.Array custom)
{
//applicationObject = (Outlook.Application)applicationObject;

//Acquire the "Menu Bar" and create a new control on it
menuBar = ((Outlook.Application)applicationObject).ActiveExplorer().CommandBars["Menu Bar"];
commandBarControl_CM = menuBar.Controls.Add(MsoControlType.msoControlPopup, 1, "", 6, true);
commandBarControl_CM.Visible = true;
commandBarControl_CM.Caption = "Calendar Management";

//Add button(s) to the newly created control
CommandBarPopup commandBarPopup_CM = (CommandBarPopup)commandBarControl_CM;
CommandBarControl commandBarControl_SI = commandBarPopup_CM.Controls.Add(
MsoControlType.msoControlButton, 1, "", 1, true);
commandBarControl_SI.Visible = true;
commandBarControl_SI.Caption = "Show Info";

//Add button event handler(s)
CommandBarButton button_showinfo = (CommandBarButton)commandBarControl_SI;
button_showinfo.Click += new _CommandBarButtonEvents_ClickEventHandler(button_showinfo_Click);
}

public void OnBeginShutdown(ref System.Array custom)
{
}

private void button_showinfo_Click(CommandBarButton Ctrl, ref Boolean CancelDefault)
{
System.Windows.Forms.Form form_CalMng = new Form_CalMng();
form_CalMng.Show();
}

private object applicationObject;
private object addInInstance;
}
AnswerRe: Help! My COM add-in for outlook can run only once, why? Pin
OctopusThu31-Oct-06 18:16
OctopusThu31-Oct-06 18:16 
QuestionMemory Allocation of COM Objects Pin
Killer326-Oct-06 18:31
Killer326-Oct-06 18:31 
AnswerRe: Memory Allocation of COM Objects Pin
Mike Dimmick27-Oct-06 3:47
Mike Dimmick27-Oct-06 3:47 
QuestionAutomatic instantiation of remote COM from other operating systems Pin
Raphael Amorim26-Oct-06 7:14
professionalRaphael Amorim26-Oct-06 7:14 
AnswerRe: Automatic instantiation of remote COM from other operating systems Pin
iserik6-Nov-06 5:42
iserik6-Nov-06 5:42 
GeneralRe: Automatic instantiation of remote COM from other operating systems Pin
Raphael Amorim17-Nov-06 6:10
professionalRaphael Amorim17-Nov-06 6:10 
Questionprogamatically call WindowActivate event Pin
K edar V25-Oct-06 21:57
K edar V25-Oct-06 21:57 
QuestionCreateInstance failed in Windows service Pin
hybride25-Oct-06 19:32
hybride25-Oct-06 19:32 
AnswerRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]26-Oct-06 4:25
professionalJonathan [Darka]26-Oct-06 4:25 
GeneralRe: CreateInstance failed in Windows service Pin
hybride27-Oct-06 1:08
hybride27-Oct-06 1:08 
GeneralRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]27-Oct-06 3:24
professionalJonathan [Darka]27-Oct-06 3:24 
AnswerRe: CreateInstance failed in Windows service Pin
hybride29-Oct-06 20:26
hybride29-Oct-06 20:26 
GeneralRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]29-Oct-06 21:39
professionalJonathan [Darka]29-Oct-06 21:39 
AnswerRe: CreateInstance failed in Windows service Pin
hybride29-Oct-06 21:50
hybride29-Oct-06 21:50 
GeneralRe: CreateInstance failed in Windows service Pin
Jonathan [Darka]30-Oct-06 3:24
professionalJonathan [Darka]30-Oct-06 3:24 
GeneralRe: CreateInstance failed in Windows service Pin
hybride30-Oct-06 23:49
hybride30-Oct-06 23:49 
QuestionHow to mashal IElementBehaviorFactory interface? Pin
jinhaibo25-Oct-06 16:55
jinhaibo25-Oct-06 16:55 

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.