Click here to Skip to main content
16,004,882 members
Home / Discussions / COM
   

COM

 
QuestionASP.NET Ajax Page Caching Pin
K.P.Kannan4-Nov-06 14:25
K.P.Kannan4-Nov-06 14:25 
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 
I created a .NET class libray, and I use it in a Win32 Console app.
It works fine, but the smart pointer Release() method, don't call the .NET class destructor? What did I wrong?

Win32:
#import "p1.tlb"

void f()
{
p1::IClass1Ptr p("My1.Class1");
p->Show();
}

int _tmain(int argc, _TCHAR* argv[])
{
CoInitialize(NULL);
f();
return 0;
}

.NET class lib:
[ComVisible(true)]
[GuidAttribute("3DAF8E7A-ACD0-4bd9-B275-04F4F802948B")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsDual)]
public interface class IClass1
{
void Show();
};

[ComVisible(true)]
[ProgIdAttribute("My1.Class1")]
[GuidAttribute("BA9367CA-6707-4060-A42C-34D2A3DEBC05")]
[ClassInterfaceAttribute(ClassInterfaceType::None)]
public ref class Class1 : IClass1
{
public:
virtual void Show()
{
MessageBox::Show(m_str);
}

public:
Class1()
{
m_str = gcnew String("Class1()");
}

~Class1()
{
if(m_str) delete m_str;
this->!Class1();
}

!Class1()
{
}

private:
String^ m_str;
};

whole source:
http://bmfnik.hu/szokeimre/prog/com_ptr.ZIP
QuestionHelp! My COM add-in for outlook can run only once, why? Pin
OctopusThu28-Oct-06 19:05
OctopusThu28-Oct-06 19:05 
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 

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.