是有什么区别的B / W R​​egAsm.exe和REGSVR32?如何使用REGSVR32生成一个TLB文件? [英] what is difference b/w RegAsm.exe and regsvr32 ?? How to generate a tlb file using regsvr32?

查看:281
本文介绍了是有什么区别的B / W R​​egAsm.exe和REGSVR32?如何使用REGSVR32生成一个TLB文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何机构可以告诉我什么是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()从库。它不关心什么<​​code>中的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 R​​egAsm.exe和REGSVR32?如何使用REGSVR32生成一个TLB文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆