运行CLIREG32的正确语法?

时间:2014-05-27 19:28:52

标签: c++ vb6 dcom clireg32

我正在尝试在Windows 7(64位)计算机上安装旧版VB6客户端,该计算机可与使用Visual C ++编写的DCOM服务器通信。我知道我需要运行CLIREG32并将.VBR文件作为参数传递给它。我正在尝试这样:

clireg32 myvbrfilehere.vbr -s <ip address> -d -l

它似乎毫无障碍地运行,但我想我应该能够搜索注册表并查看我输入的IP地址作为参数。所以有些东西告诉我在这个命令中我错过了一些东西。 (我也尝试添加-t mytypelibrary.tlb,但这也无济于事)

有关使用这项古老技术的想法吗?我现在无法重建一切。我开始绝望了......

由于

1 个答案:

答案 0 :(得分:0)

Microsoft文章Q155939中至少有有限的信息。

Archived copy。)

改写有用的部分:

  

Q155939:如何:使用Clireg32.exe进行远程自动化

Article: Q155939
Last Modified: 31-JUL-1999

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Visual FoxPro for Windows, versions 5.0, 6.0 
-------------------------------------------------------------------------------

SUMMARY
=======

This article provides an explanation of Clireg32.exe and how it is used for
remote automation.

MORE INFORMATION
================

The Clireg32.exe component allows you to register an OLE server (.exe) remotely.
It differs from the Remote Automation Connection Manager (RacMan) in that the
server does not need to be located on the machine registering it. The Setup
Wizard handles the maintenance of registering remote servers for you.

NOTE: Remote servers and Clireg files are stored in the \Windows\Olesrv\
directory, which is similar to Visual Basic if it is installed via the Setup
Wizard.

The Clireg32.exe program takes a number of parameters. The only required one is
the name of the .vbr file (generated with the server during build):

  Clireg32 myexesvr.vbr

In order to fully register a remote server, you must provide the network name,
network protocol, and security access. Clireg32 prompts you with a dialog box if
these options are not passed. For a list of all the parameters, simply execute
Clireg32.exe by itself.
     

Microsoft Corporation 1986-2002版权所有。