com-interop
How can I delete a SAFEARRAY returned from a .NET function in native code?
I\'m hosting a .NET library in my C++ program using the following methods, though not an exhaustive list:[详细]
2023-02-17 12:52 分类:问答Is there any harm in killing a COM server without releasing com objects in .net?
Folks - I\'m creating many COM servers (I\'m launching开发者_运维问答 numerous EXEs) in .net, talking to COM via COM -interop, using numerous COM objects in the server, etc.If I kill the process, is t[详细]
2023-02-16 10:01 分类:问答Interop: Using COM in ASMX webservice or WCF service - C#
Recently, I am facing an issue I thought it would be easy to implement. I have a COM object already installed on my Windows 7 machine.[详细]
2023-02-15 18:59 分类:问答Excel Interop Exception (2007 installed, Office.Interop.Excel used - ver 1.6 (12)) - 0x800A03EC HResult
Trying to 开发者_运维知识库make an excel file using this code: app = new Excel.Application(); app.Visible = false;[详细]
2023-02-15 16:18 分类:问答Should an out-proc COM server eventually stop in all cases it is not used?
I found an out-proc COM server implemented (supposedly due to a bug) in such way that if a client calls CoGetClassObject() and then never tries to instantiate anything with the retrieved factory the s[详细]
2023-02-14 22:49 分类:问答Is there a way to pass an OCX control reference out from a Visual Basic 6 activeX dll via COM interop?
I stumbled upon this while trying to build an ActiveX dll from an old (but still maintained) VB6 exe project(*) sources in order to perform some testing via COM / NET interop.[详细]
2023-02-14 15:40 分类:问答What happens if my out-proc COM server exits without calling CoRevokeClassObject()?
MSDN says CoRevokeClassObject() informs COM that some COM class is no longer available for instantiation.[详细]
2023-02-14 09:03 分类:问答Enable a deskband (windows toolbar) programatically
I am trying to programtically enable a deskband that I wrote usingthis from code project. The deskband works fine, and I have corrected the problem with the IStream interface that prevents the toolbar[详细]
2023-02-14 03:26 分类:问答C# .Net4: Properly disposing (dynamic) COM objects
I need to automate office documents (Word & Excel) from my .Net4 a开发者_运维技巧pp. Since I can\'t really force my users to use a specific Office version I don\'t use interop assemblies or tlbi[详细]
2023-02-13 16:47 分类:问答How do I know which "single use" out-proc COM server process to restart if it hangs?
I need to run some native C++ code in such way that if it crashes it doesn\'t affect my C# progr开发者_开发知识库am. I can use an out-proc COM server with \"single use\" activation so that each COM ob[详细]
2023-02-13 09:11 分类:问答