在C#中,这很简单,设置ComVisible &继承自接口(也是ComVisible)就可以完成这项工作。但是,作为C++/CLI构建的C++项目不会导出DllRegisterServer。#include "stdafx.h"
using namespace System::Runtime::InteropServices;
public interface
类结构如下所示:public interface IA string P1{get;} public interfaceIB : IA string P2{get;} public abstract class Base : IA public string P1{get{return "somestring";}}public
ComVisibleThis i有一些类标记为.NET程序集,这些类被注册为regasm /codebase "assembly_path"I with app.config name (实际上- MyAssemblyName.dll.config),它们位于程序集的文件夹i通过ConfigurationManager.AppSettings["SettingName"]I COM文件访问appSettings中,该文件通过创建CreateObject("...")When对象来创建COM对象(从VBScript创建),Configuration
我已经用vb.net (VS2012)编写了一个动态链接库,其中的类和函数是可见的。如下所示:Imports System.Runtime.InteropServicesPublic Class InterFc
Public Const ClassId As String = "553CCD79-3067-44DE-B1AD-36A153F