gpt4 book ai didi

vb6 - 如何修复我的源代码绑定(bind)?

转载 作者:行者123 更新时间:2023-12-02 04:41:05 24 4
gpt4 key购买 nike

我已经安装了 VB6,我已经安装了 Sourcegear Vault 5.x,现在每次启动 VB6 时都会收到此消息。

enter image description here

当然,我不能使用内置的源代码控制命令。
我试过重新安装 SourceGear Vault,但无济于事。我错过了什么?

我该如何解决?

最佳答案

一般信息

当 VB6 加载源代码控制加载项但没有默认 MSSCCI 提供程序时,您会收到此错误消息。

MSSCCI 代表 Microsoft 源代码控制接口(interface),它是大多数 IDE 用于连接到版本控制系统 (VCS) 的标准 API。它最初是为 Visual SourceSafe 开发的,当您安装 SourceSafe 时,它​​包含用于 IDE 集成的 MSSCCI 提供程序。对于某些现代 VCS,必须单独安装 MSSCCI 提供程序。

您可以通过查看注册表项 HKLM\SOFTWARE\SourceCodeControlProvider\InstalledSCCProviders 来验证您的系统上安装了哪些 MSSCCI 提供程序。 .(在 64 位系统上,请改为查看 HKLM\SOFTWARE\Wow6432Node\SourceCodeControlProvider\InstalledSCCProviders。)

大多数 IDE,包括 VB6,仅在安装多个时才支持默认提供程序。默认提供程序存储在注册表项 HKLM\SOFTWARE\SourceCodeControlProvider\ProviderRegKey 中.

注意:一个名为 SCCSwitcher 的便捷应用程序如果您需要更改默认的 MSSCCI 提供程序,这非常有用。

SourceGear 保险库

由于您特别提到问题出在 SourceGear Vault,因此您可能遇到了名为 VB6 and VC++ 6.0 Integration on Windows 7 的 Vault 知识库中描述的问题。这包括以下步骤:

Typically, for VB6 and VC++ 6.0 integration with Vault, your client machine needs the .NET Framework 1.1. However, this version of the Framework is not supported on Windows 7. The workaround is to make VB6 load the .NET Framework 2.0 when starting VB6.

Here are the instructions for making VB6 load the 2.0 .NET framework:

1) Make a copy of the VaultGUIClient.exe.config (in the Vault GUI Client directory) and rename it "VB6.exe.config."

2) Copy the "VB6.exe.config" file into the same directory as the Visual Basic executable, "VB6.exe." Edit the VB6.exe.config file, adding runtime information after the <configuration> line:

 <startup>  
<supportedRuntime version="v2.0.50727"/>
<requiredRuntime version="v2.0.50727" safemode="true"/>
</startup>

so that the first part of the config file looks like this:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v2.0.50727"/>
<requiredRuntime version="v2.0.50727" safemode="true"/>
</startup>
<system.net>

For Visual C++ 6.0, create an "MSDEV.exe.config" file using the instructions above and place it in the MSDEV.exe directory.

(Note: This is for VB6 and VC++ 6.0 in Visual Studio 6 only. No special configuration is needed for VB or Visual C++ integration in VS 2005/2008/2010.)

3) You may also need to modify your registry settings for Source Control Provider on the Vault Client machine. For 64-bit Windows 7:

3a) In the registry, under HKEY_LOCAL_MACHINE\Software\Wow6432Node\SourceCodeControlProvider add a string called ProviderRegKey and give it the data SOFTWARE\SourceGear\Vault Client.

3b) In the registry, under HKEY_LOCAL_MACHINE\Software\Wow6432Node \SourceCodeControlProvider\InstalledSCCProviders, change the key that might list the Vault VS 2003 Compatible Client to read as SourceGear Vault Classic Client and give it the data of SOFTWARE\SourceGear\Vault Client

关于vb6 - 如何修复我的源代码绑定(bind)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20829193/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com