大网数据广告活动
安装更新与部署

Register OCX and DLL files as system globals

· 52CE 我爱测

Describes how to register OCX and DLL files as system globals.

This article describes how to register OCX and DLL files as system globals.

Applies to:   Windows 10 - all editions
Original KB number:   186597

Summary

You may receive an error when installing or running an application stating that an OCX file or a DLL file needs to be registered as system global. Make a note of the file that needs to be registered.

OCX files

  1. Start your server in VGA mode.
  2. You will need to use the Regsvr.exe, Regsvr16.exe (16-bit), or Regsvr32.exe (32-bit) command to register the OCX file as system global. These commands are included in the development kit when Visual Basic or Visual FoxPro is installed.

Depending on the application, you may have to register several OCX files this way.

DLL files

To register a DLL as a system global, go to the SYSTEM32 directory and locate the DLL mentioned in the error message. The command to register a file called Sample.dll is:

REGISTER /S SAMPLE.DLL

Registration data for a program is recognized only when the program is loaded. Therefore, if you issue a REGISTER command for a program that is already loaded, the changes will not take effect until the next time the program is loaded.

Also note that only administrators can run REGISTER.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。