Why there is difference in registering COM component for 32-bit and 64-bit?
I mean at one point you have to use like this,
RegSvr32 COM.exe
or
RegSvr32 COM.dll
On 64-bit OS you have to use like,
COM.exe /RegServer
COM.exe /RegSvr
Does /RegServer and /RegSvr are same or different. If different then what is the difference.
Thanks in ...
I am writing a Java program that interacts with Microsoft Outlook using the Jacob library (bridges COM and Java). This program creates a new MailItem, displaying its Inspector window to the user. I wish to subscribe to the inspector's Close event to know when the user is finished editing their mail item.
To subscribe to the event, I fol...
What is the difference between COM and DCOM ?
...
We have a legacy VB6 application that updates itself on startup by pulling down the latest files and registering the COM components. This works for both local (regsvr32) ActiveX COM Components and remote (clireg32) ActiveX COM components registered in COM+ on another machine.
New requirements are preventing us from writing to HKEY_LOAC...
I'd like to pass an associative array (or simply an object with property names & values) to my ActiveXObject. I can't find anyone who has successfully and simply passed complex data from javascript to an ActiveX object.
My ActiveX object is being loaded in IE, and it's mine so I can change the method signature & code to whatever will w...
If you have a C++ project that has a bunch of .ODL files and the generated .h files from the ODL compiler, should doxygen be told to parse both .odl and .h, or only one or the other? In general I don't like documenting generated code but IDL is sort of a special case.
In any case, it seems like the member listing of ODL files is not qui...
When registering .NET assemblies for COM Interop, I do two things, currently in this order:
regasm /tlb:MyDll.tlb Mydll.dll
gacutil /i Mydll.dll
I use regasm to register the type library for COM and gacutil to install the assembly into the GAC. Does it matter which order I do these two actions? Also, as I make updates to my dll, do...
As related to my previous question, I have developed a temporary asynchronous pluggable protocol with the specific aim to be able to serve PDF documents directly to a WebBrowser control via a database.
I need to do this because my limitations include not being able to access the disk other than IsolatedStorage; and a MemoryStream would b...
I've added types to my .NET classes that I'm using for COM interop. To get it to work with my VB6 application, I unregistered the DLL and re-registered it (using regasm). I then uninstalled and reinstalled it to the GAC (using gacutil).
The types are showing up in the VB6 object explorer, but when I run the application in the VB6 IDE,...
When you interface a COM object from .NET code, VS creates an interop DLL, with interop classes.
Example:
You have a foo.dll the implements a COM library Foo, that includes an implementation of the COM interface "IBar". You add a reference to foo.dll to a .NET project. in /bin, you'll see an Interop.FooLib.dll. In the Object Browser...
I'm trying to fix a problem that only recently happens on a number of machine's on a VPN. They each run a client application I wrote that exposes a COM automation object.
For some strange reason I haven't been able to discover yet, one thread in the application takes up all of the available CPU time, slowing other operation on the machi...
I have an understanding of windows COM and the ideas behind it. I am trying to understand if *nix systems even have an equivalent or why they don't?
...
I would like to create a excel Add in which creates some additional toolbars and Menu buttons.
But I want this addin to load only when a specific workbook is opened. I dont want to load the Addin if anyother workbook is open.
I would like to know what are the possible ways to solve this problem and what is the best approach to implement...
I have a WPF application that calls an API to operate a device (a scanner). This API is COM based, and internally has a hidden window that the scanner sends messsages too. The intent of the API is to turn those windows messages into COM events. The problem is that the WPF application doesn't have a message pump, and therefore none of the...
I'm trying to deal with a piece of specialized hardware, that presents it's interface as a COM object, using win32com in Python.
However, the documentation for how to actually set up the hardware through the COM object is sparse (it requires a significant amount of initialization), and entirely oriented at using a bunch of pre-built lib...
Hi,
I have written a DirectShow source filter in C# that works like a charm but there's one problem: in GraphEdit (and similar tools), the connection between my source filter's output pin and the downstream filter's input pin isn't drawn, although both pins' properties indicate that they're connected and also the graph works as it shoul...
Here is a code sample
[Guid("159463FB-A87A-4BBB-BCA1-064CD84495FB")]
public interface ISettingsFactory
{
ISettings GetSettings(string userName);
}
[Guid("FD11B979-0ED1-41fb-8EB0-1234512345D0")]
public interface ISettings
{
string PrivateKey {get;}
}
[Guid("782937826-705F-4be2-1234-A7...
I need to importlib a VB6 dll for consumption by an ATL component. I'm not able to use the MIDL import keyword for various reasons. I'm getting a C2061 error in my project in the generated header file (test_i.h) : syntax error: identifier '_MyDataType'. My idl file is
import "oaidl.idl";
import "ocidl.idl";
[
uuid(8BB809C6-B5EC-48B1-9...
On .NET Rocks! Show 561, Carl and Richard talked about releasing unmanaged objects instantiated in managed code. If you have to release a COM object that's instantiated in managed .NET code, you have to call System.Runtime.InteropServices.Marshall.ReleaseComObject. Is there anything similar you have to do (or should do) when releasing ...
The AxAcroPDF swallows all key-related events as soon as it gets focus, including shortcuts, key presses, etc. I added a message filter, and it doesn't get any key-related messages either. It's a COM component, could that be relevant?
Is there any way to catch these before the control starts swallowing them?
...