问题描述
任何机构可以告诉我什么是REGSVR32和RegAsm和我的DLL之间的差异是C#DLL那么,如何可以导入类C ++。
Can any body tell me what is diff between regsvr32 and RegAsm and My Dll is C# dll so how can i import the classes to c++.
推荐答案
REGSVR32
将加载库,并试图调用中的DllRegisterServer()
从库。它不关心什么中的DllRegisterServer()实际上做 - 它只是调用该函数并检查返回值。您可以使用它在非托管的DLL注册的COM服务器。它无法生成.tlb文件
regsvr32
will load the library and try to call the DllRegisterServer()
from that library. It doesn't care what DllRegisterServer()
actually does - it just calls that function and checks the returned value. You use it to register COM servers in unmanaged DLLs. It can't generate a .tlb file.
regasm
将注册COM暴露的.NET程序集作为COM服务器。您可以使用它为.NET程序集。它可以生成只给出了一个装配.tlb文件 - 它会检查存储在装配式infromation并包括COM暴露实体到类型库
regasm
will register a COM-exposed .NET assembly as a COM server. You use it for .NET assemblies. It can generate a .tlb file given the assembly only - it inspects the type infromation stored in the assembly and includes the COM-exposed entities into the type library.
这篇关于是有什么区别的B / W RegAsm.exe和REGSVR32?如何使用REGSVR32生成一个TLB文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!