com

Registration-Free Activation of COM Components

Does this example for Registration Free Activation still work in VS2008 and Windows Vista/7? http://msdn.microsoft.com/en-us/library/ms973913.aspx I haven't been able to get it to work. But I was able to use the Isolated COM setting to make an embedded manifest load an OCX file as I wanted. Registering with regsvr32 worked also, so so...

How does COM support optional parameters?

The question title pretty much says it all. But, how does COM support them? Does C++ support them? Is is ignorant of me to assume that all COM code is written in C++? Or is COM just a methodology, a way to architect your app? I'm curious. I've been writing lots of COM automation from C# lately and this question just occurred to me....

When is ieaksie.dll registered as InProcServer32 for InternetExplorer.Application?

One of my guys had a problem when instantiating InternetExplorer.Application from VB6 and VBScript. It turned out that he (but no one else on the team) had the following entry in the registry apart from the expected (and working) LocalServer32 entry which creates an instance out-of-process using iexplore.exe: [HKEY_CLASSES_ROOT\CLSID{00...

How to use COM objects in Python 3.x ?

I want to access COM objects using Python 3.1, but I can't find a library to support 3.x. Do I need to use some extension or there is something in the standard library? ...

.Net COM Dll in Classic ASP on 64 bit: 800a01ad ActiveX component can't create object

I have a .Net assembly in 64 bit that has been successfully registered with regasm (yep, the 64 bit version). I'm running IIS7 and the application pool that it runs from is in Managed Pipeline Mode:Classic. I can run the object in a VBS script file and it works correctly, I can also do: $ting = New-Object -com MyObjProgId from PowerS...

IIS 5.0 Calling COM+ Objects from ASP scripts

Note: I couldn't decide whether this was more appropriate for Stack Overflow or Serverfault, so if you have some insight into that, let me know. Background: Recently, my server (Windows 2000, MS SQL 2005, IIS 5.0, ASP Classic) experienced a spike in traffic to a specific set of ASP pages. This spike caused a massive drain on the process...

Specify Isolated COM settings in dependent DLLs or just executable?

I'm setting the Isolated COM project settings in a C++ VS2005 project to load an ocx component using the Registration-Free Activation method. If the ocx component is also used in a DLL library my application loads, do I need to set the Isolated COM settings in that DLL project's settings as well? Or would setting only the main applicat...

Documentation for implementors of COM interfaces

I'm in the process of doing some COM interop from a C# application and I can't seem to find the answer to this. I was wondering where I could find in the Win32 documentation which concreate implementions that exists of a COM interface. For example I know (thanks to goodgle) that IShellLinkW is implemented by a class that's identified by...

Is it possible to prohibit putting my in-proc component into COM+?

I have an ATL C++ in-proc COM component. This component is not for external use - I only need it for use in our application. Once in a while users put it into COM+ and this leads to all sorts of weird errors - "Access denied", etc which I'd like to just never hear about. The best way would be to do something that would prohibit putting ...

MSMQ not invoking COM

I made a COM object with c# and let VS register it for me. I can see it in registry and if I make a test app I can add a reference to it and it works as expected with all the methods available and functional. Now If I try and use it in a MSMQ rule nothing happens. It will not be invoked. Is this because it is a .NET assembly? Is it ...

how to call a C# dll from unmanaged c++ using IDispatch?

I have a C# dll that I need to call from unmanaged C++. The main problem that I have is that my c++ code corresponds to an excel add-in, that can be installed for excel 2003 and excel 2007, when I install my add-in in excel 2007, and I try to call my C# dll, it works just fine, but for some reason that I still haven't been able to find, ...

Access .NET generic objects from VBA

My .net code has an object with a number of generic properties. This object is returned to the VBA code. All the non-generic properties are working well, but I also need to access the generic values. Is there a way to do it from VBA? [ClassInterface(ClassInterfaceType.AutoDual)] public class Obj { public string GetProp1() {...} ...

How can I access objects in the Running Object Table (ROT) from within Internet Explorer's Protected Mode?

I have tried the following: Setting HKLM\Software\Classes\AppID{AppID}\ROTFlags to 0x1 (as recommended here), and also tried registering the object in the ROT with the ROTFLAGS_ALLOWANYCLIENT flag set. However, I always get a 0x800401e3 (Operation unavailable) error whenever I try to access the ROT object from within IE's protected mode....

Calling C# COM object

Ok, I've created a c# dll, made all its interface and methods all ComVisible(true). Added it to the GAC using gacutil, then registered it using regasm and created a type library tlb file. Now I have another c# project that I want to make calls to that com object, how can I do this? What would the code roughly look like to import the com...

Testing COM calls in WSH windows script

I have a working C# COM component dll, with a class called MyComponent in the ap namespace, which is added to the GAC and registered successfully. I added a Add() call to it, tested it with a win32 c++ exe and called the Add() call successfully, so its all working. However I want to test the call in WSF (windows script) I put the code b...

How would you pass an C# object via com?

How would one pass a C# object via com? For example, say I have the following in a c# dll which is registered in the GAC and registry: public int Add(int a, int b) { return a + b; } public int Add(NumberObject obj) { return obj.firstNumber + obj.SecondNumber; } How is it possible to make the NumberObj...

What event/interface is used to show the IWebBrowser2 secure warning?

I am using a IWebBrowser2 control in my application and writing my own container (in C++ - No ATL/MFC allowed). The control works fine. However web sites will not show if I am going from secure to non secure. It trails back to the setting in advanced options of IE (WarnonZoneCrossing) : Warn if changing between secure and not secure. ...

AutoResetEvent and COM Objects

I've noticed that AutoResetEvent completely freezes the message loop (sometimes) when in the middle of a WaitOne() call, effectively even blocking the signal message. IE: (UI) New thread spawned (UI) Code calls WaitOne(); timeout: 10s (T2) Thread opens device, calls Set() (UI) WaitOne blocks message loop (UI) WaitOne timeout elapsed, ...

How to check if COM component(exe/dll) is registered or not [using .NET]?

How to check if COM component(exe/dll) is registered or not using .NET? ...

Excel OpenText method

I keep getting the ambiguous error code of 0x800A03EC.   I've been searching quite a bit to see if I could find a specific reason for the error but unfortunately that code seems to cover a multitude of possible errors. I will copy and paste the code that seems to be giving me problems and hopefully someone will be able to provide me wit...