如何在Windows Server 2008中注册dll [英] how register a dll in windows server 2008

查看:126
本文介绍了如何在Windows Server 2008中注册dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试注册mydll.dll,但我不知道它是用哪种语言编写的

我在做

I am trying to register mydll.dll I dont know in what language it has been written

I am doing

regsvr32  "C:\Windows\System32\mydll.dll"


运行中

我收到以下错误:


in run

I get the following error:

The module "C:\Windows\System32\mydll.dll" was loaded but the entry-point DllRegisterServer was not found.

推荐答案

Regsvr32 [ ^ ]是用于使用 COM 注册本机dll [添加对您的dll的引用 [ ^ ].

最好的问候
Espen Harlinn
Regsvr32[^] is a tool for registering native dlls with COM[^]

>> I made ​​this dll file in c# 2010 from some classes.
If this is the case, all you need is to add a reference to your dll[^] from your project.

Best regards
Espen Harlinn


好像没有正确导出dll的入口点.请参阅: http://support.microsoft.com/kb/249873 [如何自动将.NET功能导出到非托管程序中 [ ^ ]
-无需C ++/CLI的DLL导出简单方法 [ ^ ]
Looks like you haven''t properly exported the entry point for the dll. See: http://support.microsoft.com/kb/249873[^]

Since you don''t have the source code for the dll, try contacting the author of the library.

Addition:
To export functions from C# dll, have a look at the following articles:
- How to Automate Exporting .NET Function to Unmanaged Programs[^]
- Simple Method of DLL Export without C++/CLI[^]


这篇关于如何在Windows Server 2008中注册dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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