在Windows 7中运行VB6的问题 [英] Issues Running VB6 in Windows 7

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

问题描述

我在新工作站上打开VB6代码时遇到问题。  首先,这是错误(作为示例):


当我双击打开我的一个.vbp项目时,会发生以下两个错误。


      "对象库未注册"


      "继续加载项目" /是


我单击是,我被称为Form1.log。 当我打开Form1.log时。 显示以下详细信息。


第13行:控制ProgressBar1的类MSComctlLib.ProgressBar不是加载的控件类。

第24行:类MSComctlLib.StatusBar of控制StatusBar1不是一个加载的控件类。


~~~~~~~~~~


我读了几篇关于这个问题的文章这就是我尝试过的。 我已经使用了以下文件(mscomct2.ocx)并将其复制到C:\ Windows \ SysWOW64 \。 然后我按照以下有关此组件的说明进行操作:


当缺少VB6控件时手动注册此组件


1。复制文件夹下的组件:

  C:\ Windows \sysWow64 > 64

  ; C:\ Windows \ system32 > 32


2。使用管理员权限打开DOS cmd提示

3。指向"C:\ Windows \sysWow64"

4。执行命令:

  regsvr32 mscomct2.ocx


当我运行此命令时,收到以下消息:


      mscomct2.ocx中的DllRegisterServer成功。


但是,在我运行这些步骤之后。 会出现相同的错误消息和相同的日志条目。 是否有一个我缺少的步骤?


谢谢








解决方案

请在以下论坛中提问


http://www.vbforums.com/forumdisplay.php? 1-视觉-基本-6和 - 早些时候


I am having trouble opening my VB6 code on my new workstation.   First, here is the error (as an example):

When I double click to open one of my .vbp projects the following two errors occur.

      "Object Library Not Registered"

      "Continue Loading Project" / Yes

I click Yes and I'm referred to Form1.log.  When I open the Form1.log.  The following details are displayed.

Line 13: Class MSComctlLib.ProgressBar of control ProgressBar1 was not a loaded control class.
Line 24: Class MSComctlLib.StatusBar of control StatusBar1 was not a loaded control class.

~ ~ ~ ~ ~ ~ ~ ~ ~ ~

I've read several articles on this issue and here's what I've tried.  I've taken the following file (mscomct2.ocx) and copied it into C:\Windows\SysWOW64\.  Then I followed the following instructions regarding this component:

Manually register this component when VB6 controls are missing

1. Copy component under folders:
 C:\Windows\sysWow64 >64
 C:\Windows\system32 >32

2. Open DOS cmd prompt with Administrator rights
3. Point to "C:\Windows\sysWow64"
4. Execute command:
 regsvr32 mscomct2.ocx

When I run this, I get the following message:

      DllRegisterServer in mscomct2.ocx succeeded.

However, after I've run these steps.  The same error messages and the same log entries occur. Is there a step that I'm missing?

Thank you

解决方案

Please ask in the following forum

http://www.vbforums.com/forumdisplay.php?1-Visual-Basic-6-and-Earlier


这篇关于在Windows 7中运行VB6的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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