在Windows Vista上无法将winsock控件添加到visual basic 6.0 [英] unable to add winsock control to visual basic 6.0 when on windows vista

查看:70
本文介绍了在Windows Vista上无法将winsock控件添加到visual basic 6.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用VS Setup上的"以管理员身份运行"在我的Vista上安装VS 6.0。 Vista展示了"兼容性问题"。对话框,然后是"问题与解决方案"对话框指示我到MS页面下载我下载并安装的VS 6.0 Service Pack 6.



Visual Basic现在运行,我可以创建和运行应用程序。但是,当我尝试将Winsock控件(我的聊天应用程序所需)添加到表单时,它会出现以下错误:"无法加载C:\ Windows \ system32 \mswinsck.ocx"。并且,如果我打开已经创建的使用Winsock控件的项目,它会出现以下错误以及上面提到的错误"行123:类MSWinsockLib.Winsock of control Winsock不是加载的控件类"。我可以添加和使用其他控件。



该文件存在于位置system32中,我尝试重新安装Visual Studio和Service Pack,并且还运行"regsvr32 c:\windows \ system32" \MSWINSCK.OCX"从开始>运行,表示它成功注册了文件。但是,它仍然无济于事。



我还想提一下,如果我安装我的聊天应用程序,它使用winsock发送短信(使用我在VB上创建AT HOME的设置6.0 SP4),程序(独立EXE)函数(即它可以使用winsock控件),但即便如此,当我尝试将控件添加到Visual Basic IDE中的表单时,我得到相同的错误。
可能有什么问题?

解决方案

您必须在管理员模式下运行VB。


在VB的快捷方式上单击鼠标右键,然后单击:"以管理员身份运行"。


这是在这里工作的。


我希望能帮到你。



I tried to install VS 6.0 on my Vista, using Run As Administrator on VS Setup. Vista displayed the "Compatibility Issue" dialog and then the "Problem And Solutions" dialog directed me to a MS page to download Service Pack 6 for VS 6.0 which i downloaded and installed.


Visual Basic now runs, and i can create and run applications. But, when i try to add the Winsock control (its required for my chat application) to a form, it gives the following error "C:\Windows\system32\mswinsck.ocx could not be loaded".And, if i open the already created project which uses the Winsock control, it gives the following error alongwith the error mentioned above "Line 123: Class MSWinsockLib.Winsock of control Winsock was not a loaded control class".I can add and use other controls.


The file exists in the location system32 and i tried reinstalling Visual Studio and the Service Pack, and also running "regsvr32 c:\windows\system32\MSWINSCK.OCX" from Start>Run, which said it succeeded in registering the file. But, still it doesn't help.


I'd also like to mention that if I install my chat application, which uses winsock for sending text messages (using the setup i had created AT HOME on VB 6.0 SP4), the program (standalone EXE) functions (i.e. it can use the winsock control), but even then, i get the same errors when i try to add the control to a form in Visual Basic IDE.
What might be wrong?

解决方案

You have to run the VB on Administrator Mode.

Click with mouse right button on VB's shortcut, and click on: "Run as Administrator".

It's worked here.

I hope helped you.

 


这篇关于在Windows Vista上无法将winsock控件添加到visual basic 6.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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