com

how do i transform a standard COM object into ActiveX?

Hi, A have a working COM object. do I need to do any code/registry modifications in order to make it an ActiveX? Ofer ...

Visual Studio Setup Project failing to add keys to registry

Hello, I'm creating a setup pacakage in Visual Studio 2008 to register a COM component and one of the actions is to add a few keys to the registry. The odd thing about it is when I run the installer it creates the key hierarchy correctly but the last key in the hierarchy it creates has the wrong GUID... whereas its right in the installe...

ComVisible in C++/CLI

Hi, i'm converting C++ to C++/CLI and would like to expose some managed classes as COM objects. In C# it was easy and setting [ComVisible] & inheriting from interface (also ComVisible) did the job. However C++ project build as C++/CLI does not export DllRegisterServer. Here is sample project (started from CLR Console Application proj...

EOleSysError with message 'Class not registered'

I have created a Type Library out of a .NET DLL i created. I then imported it into Delphi and called a method within the interface of the COM Object. When it is trying to create the COomObject i get the Error that the class is not registered. The dll is registered with the GAC so it shouldn't be that. Anybody know what else could caus...

using classes inside a COM exe from .Net

I have a .exe file I've been given which has COM classes inside it -- these are from C++, not .net ComVisible types I'd like to use those classes inside my .net project, but I can't add a reference to the exe; when I try I get DIALOG BOX: --------------------------- Microsoft Visual Studio --------------------------- A reference to ...

Connecting to a Web Service using CoGetObject from a CGI application fails

We have a browser based application, a thin client, which was developed many years ago but is still in production and is still being moved forward. This thin client application is a CGI application and we have run into a critical issue that has stopped us in our tracks. We have a need to have the CGI application talk to a Web Service a...

Start Visual Studio programmatically; C# equivalent of VB's CreateObject("VisualStudio.DTE.8.0")

I can start a new hidden Visual Studio process from VBScript, and drive it programmatically, by doing this: Set DTE = CreateObject("VisualStudio.DTE.8.0") DTE.DoStuff() How do I do that in C#? (Edit: using the correct types, not generic COM objects as used by that VBScript code.) I've tried this: using EnvDTE; ... DTE dte = new DTE...

How to get my .net dll to be referenced in vba/com?

hi guys, i have a .net dll which is written in c sharp, which uses linq to read data and return it to another calling vba app. i didn't plan for this so the initial project was written for it to be accessible by another .net app. so now i just found out that there's a lot of stuff about .net com interoperability and what not. so i've le...

How to find out a COM prog id?

I'd like to access a COM library via late binding. How can I find out its progID? Type oClassType = Type.GetTypeFromProgID("THE MISSING PROGID"); ...

How to use tlbimp.exe's /keycontainer switch?

Anybody have an example of how to use tlbimp.exe's /keycontainer command line switch? The googles...they don't help. It's always /publickey, or /keyfile. No example of using /keycontainer. ...

Why is CoCreation of a COM+ component failing with 0x8007007e "The specified module could not be found"?

I have a COM dll that is working fine as an in-proc server and I install it in Component Services COM+ Applications. Now when I try to CoCreate it from my client app, I get HRESULT 0x8007007e "The specified module could not be found". What could be causing this? ...

Is it possible to expose a C# Enum to COM Interop callers, and if so, how?

I have a managed assembly that gets called via COM Interop. Like a VBScript client, a Perl client, and so on. The classes are decorated with [ClassInterface(ClassInterfaceType.AutoDual)] [GuidAttribute("ebc25cf6-9120-4283-b972-0e5520d0000E")] [ComVisible(true)] Then of course I do the regasm thing, and all the methods work just fi...

Overloads in COM interop (CCW) - IDispatch names include suffix (_2, _3, etc)

I have a managed assembly containing a few classes, and those classes have overloaded methods. I expose the assembly to COM/IDispatch callers via [ComVisible(true)] ..and also setting the proper Guid, on the assembly itself. I do not define an explicit interface for the COM interop. It's all done dynamically. I run regasm.exe /codeb...

COM Interop Using Generic Types

It appears you can not use generic types directly with COM: see Interoperating Using Generic Types on MSDN. Can anyone give an example of how this could be achieved? ...

What causes an OLE DoDragDrop dragged item to change to the no-drop icon over a drop target?

By the no-drop icon I mean the circle with a slash indicating that you can't drop in the given location. Which function is responsible for triggering this icon change? ...

how to pass parameters to a function in a .net dll via COM/VB6?

hi guys, i have a .net dll written in c# which reads data off a data source and acts as a wrapper to allow other apps to call its function to retrieve those data. the thing is i didn't anticipate the .net dll to be used for other than .net apps, so now i was told this all is going to be used in a vba/powerpoint macro which i figure is r...

Unresolved external symbol error

I am getting the following error in my VC++ COM project. What is the problem in linking the lib files here? Error 4 error LNK2019: unresolved external symbol _BVUOpen@8 referenced in function "unsigned int __stdcall AFunc(void *)" (?AFunc@@YGIPAX@Z) CBillAcceptor.obj BillAcceptorCOM ...

Create each COM-instance in it's own exe-container.

Hi, We have an end-user client which has it's central logical components inside an singleton-COM object. (Not propper singleton, but it uses global variables internally, so it would fail.) So that there should be only one instance per exe-file. Convenient while making the client. However, I should now make a "client-simulator" to test t...

Classic ASP in 64bit mode and .NET COM DLL register problem

Hello, I'm running Classic ASP on Windows 2008 Server x64 in 64bit mode. ADODB is running fine in 64bit with classic ASP. I have a problem with mine .NET COM DLL. I have created a .NET COM DLL with such code as an sample: using System.Runtime.InteropServices; namespace TestNamespace { [Guid("C446E97E-B415-4677-B99E-9644657FC98"), ...

How to Call C++ Class Library From VB6

How do I make a C++ class library COM-Visible, and call it from VB6 code? ...