在Windows软件中注册mydll [英] Register mydll in windows software

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

问题描述

您好。大家好。

我在VS2008中创建了一个我的dll文件

当我在VC6.0中使用这个dll设计软件时没关系

但是当我把调试文件夹中的所有文件都写到其他电脑时

它不起作用。

抛出一个错误:

< a href =http://imagizer.imageshack.us/v2/800x600q90/39/l2ad.png> http://imagizer.imageshack.us/v2/800x600q90/39/l2ad.png





我尝试用 regsvr32c:\windows\system32 \ xpsSmarCardPrinter.dll但总是错误

http://pad2.whstatic.com/images/thumb/9/98/Register-a-DLL-Step-3.jpg/670px-Register-a-DLL -Step-3.jpg

谢谢!

解决方案

你好,

请试试再次关注





步骤1

如有必要,请使用您的管理员登录rator帐户。

步骤2

单击开始,然后在搜索框中键入command或cmd。它取决于您拥有的Windows版本。

步骤3

在命令提示符下键入regsvr32path和FileName.dll。按Enter键。确保输入正确的名称和文件路径。一个例子是C:\ Windows \ System32 \ example.dll。这将注册该文件。

步骤4

注册后,将显示一条消息,告知您注册成功。该消息将通知您该文件已放置在Windows注册表中。

命令行

如果要通过Regsvr32命令行手动注册/取消注册DLL文件,你可以这样做。使用Internet Explorer 3.0或更高版本的Windows PC具有Regsvr32.exe。如果您运行的是64位版本的Windows操作系统,则有两种变体。

32位版本位于:%systemroot%\ SysWoW64 \ regsvr32.exe

64位版本位于:%systemroot%\ System32 \ resvr32.exe

要使用该实用程序的任何版本,请输入以下内容:

Regsvr32 [/ u] [/ n] [/ i [:cmdline]] dllname

/ u命令将取消注册该文件。 / I可以与/ u一起使用来调用dll uninstall。 / n参数不会调用DllRegisterServer。它与/ i一起使用。如果使用/ s,则不会显示任何消息框。这适用于Windows XP及更高版本。

首次启动Regsvr32.exe时,程序将尝试加载它识别的组件。将调用DLLSelfRegister函数。



此后如果您收到相同的错误消息,请尝试以下



http://csi-windows.com/blog/all/73-windows-64-bit/378-fixing-qregsvr32-the-module-failed-to-load-the-指定模块 - 不能被发现 [ ^ ]


< blockquote>将dll复制到其他系统时,请确保它所链接的所有dll都存在。如果您的dll依赖于产品或库,则需要安装。如果你的dll链接到特定的运行时系统,需要在那里安装。



如果你的dll是'debug'你需要在另一个上安装编译器机。调试运行时库只应在您的开发人员机器上使用,不能用于导出/部署......


Hi. Everybody.
I'm created a my dll file in the VS2008
When I'm using this dll for design soft in VC6.0 It OK
But when I coppy all file in the debug folder to other computer
It not work.
There throw a error:
http://imagizer.imageshack.us/v2/800x600q90/39/l2ad.png


I tried register my dll with regsvr32 "c:\windows\system32\xpsSmarCardPrinter.dll" but it alway error
http://pad2.whstatic.com/images/thumb/9/98/Register-a-DLL-Step-3.jpg/670px-Register-a-DLL-Step-3.jpg
Thank !

解决方案

Hello,
Pls try the following again


Step 1
If necessary, log in using your administrator account.
Step 2
Click Start and type command or cmd at the search box. It will depend on what Windows version you have.
Step 3
Type regsvr32 "path and FileName.dll" at the command prompt. Hit the Enter key. Make sure that you enter the correct name and file path. An example is "C:\Windows\System32\example.dll". This will register the file.
Step 4
After registration, a message will appear telling you registration was successful. The message will inform you that the file has been placed in the Windows Registry.
Command Line
If you want to manually register/unregister DLL files via the Regsvr32 Command Line, you can do so. Windows PCs with Internet Explorer 3.0 or later have Regsvr32.exe. If you are running 64 bit versions of the Windows OS, there are two variants.
The 32-bit version is at: %systemroot%\SysWoW64\regsvr32.exe
The 64-bit version is at: %systemroot%\System32\regsvr32.exe
To use any version of the utility, type the following:
Regsvr32 [/u] [/n] [/i[:cmdline]] dllname
The /u command will unregister the file. The /I can be used with /u to call dll uninstall. The /n parameter will not call DllRegisterServer. It is used with /i. If you use /s, no message boxes will be displayed. This is for Windows XP and later versions.
When you first launch Regsvr32.exe, the program will try loading the component it identifies. The DLLSelfRegister function will be invoked.

After this if you get the same error Message,try the following

http://csi-windows.com/blog/all/73-windows-64-bit/378-fixing-qregsvr32-the-module-failed-to-load-the-specified-module-could-not-be-foundq[^]


When copying the dll to the 'other' system, make sure that all of the dlls that it links to are there as well. If your dll has dependencies on a product or library, that needs to be installed. If your dll links to a specific runtime system, that needs to be installed there.

If your dll is built 'debug' you will need the compiler installed on the other machine. Debug runtime libraries are only supposed to be used on your developer machine(s) and are not available for export/deployment...


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

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