未能使用regsvr32注册.dll [英] Failure to register .dll with regsvr32

查看:87
本文介绍了未能使用regsvr32注册.dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我用VC ++创建了一个Dll - > MFC Dll - >与MFC静态链接的常规DLL

我可以在C#中使用该dll与DllImport []



但是,为什么它无法注册系统由regsvr32.exe? regsvr32出现以下错误:

Hi,
I created a Dll with VC++ -> MFC Dll -> Regular DLL with MFC statically linked
I can use that dll in C# with DllImport[]

But , why it cann't register in system by regsvr32.exe ? regsvr32 comes up with the following error:

The module "... .dll" was loaded but the entry-point DllRegisterServer was not found.





请帮帮我。



please help me.

推荐答案

Regsvr32用于C ++的COM接口.dll。对于C#,使用 Regasm



我写了一篇文章致电所有电台关于一个简单的方法C#中的C ++ dll。
Regsvr32 is used for COM-interfaces of C++.dll. For C# Regasm is used.

I wrote an article Calling all stations about an easy way using C++ dll in C#.


这篇关于未能使用regsvr32注册.dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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