com-interop

C# Word Interop

I have an application in which I need to be able to print an existing Word 2007 format document. Looking around I can't see any free components that will facilitate this without the need for Word to be installed. Does anyone know of any? Assuming that I have to have Word installed to print the docx file, I was going to use the COM inte...

Getting Wix Votive to register COM objects

Hi. I'm using the Wix 3.5 Votive (visual studio integration) to author an installer for some COM objects. In Votive, setting a project reference pulls in the binaries from that project and automatically generates the Wix source at compile time. This is absolutely great, it is DRY and means I don't have to constantly update the Wix XML. ...

Register for COM Interop

When the Register for COM Interop option in the build properties is checked, I get an error: Cannot register assembly -access denied When the option is unchecked, the project builds without any error. But my requirement is to register the COM objects as I need to use the same in VB. Can anyone help me out in this? ...

asp.net interop memory limitation

I have an asp.net app which uses legacy COM interop library. Works fine until memory reaches somewhere around 500Mb and then it is no longer able to create new COM objects (get various exceptions, e.g. Creating an instance of the COM component with CLSID {FFFF-FFFF-FFFF-FFF-FFFFFF} from the IClassFactory failed due to the following erro...

How do I pass an Array (By Reference, in VB6) to a C\C++ *.dll subroutine?

I need to pass an empty Array of Variants to a DLL written in C (and available on all Windows versions), and the C code (which I have no control over and cannot edit) will populate the Empty Array of Variants with its some return values. Bascially, when I try this - the ByRef Array is always empty when it should contain the results of t...

Exposed .NET Object as COM - What happens with web.config

I have a .NET project that access the .config file (web.config typically) to get configuration information. If I access this .NET project from a classic ASP application how does it handle reading data from the web.config or app.config? Can it? FYI - Using System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration ...

Why is FAXCOMLib Opening File Before Sending Fax?

I need to fax adobe pdf documents from an application running under WCF (c# 4.0). It works, except that it first opens up the pdf document in Adobe Reader when I test it. Obviously this will not work in a server environment! Here is my sample code: public class InteropFaxMachineComponent : IFaxMachineComponent, ...

.NET COM Interop - Passing objects between components exposed as COM Interop

I have 2 .NET assemblies that I am exposing to COM via COM Interop. 1st one is a .NET Logger component The 2nd component has a method where you pass in a Logger object. This all works fine in .NET When I expose both as COM Interop I am doing the following in classic ASP with COM. Creating an instance of Logger via COM (Interop) Crea...

Which is the best way to access COM interfaces from a J2EE server?

Are the available Java-COM bridges like j-Integra, com4j and Jacob and others suitable to be used in a J2EE container? Which one is the most appropriate for that use? I need to evaluate the risk of JVM crashes, native memory leak and unmanaged thread creation (since it's not recommended in a J2EE container that uses thread pools) for the...