无法创建活动的x组件 [英] Can't create active x component

查看:85
本文介绍了无法创建活动的x组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在Windows 7 64位计算机上的vb中运行Windows应用程序时出现异常.代码是

Hi,
I got an exception while running windows application in vb on windows7 64-bit machine. Code is

Public Function Login(ByVal userName As String, ByVal password As String) As Boolean
            Try
                sessObject = CreateObject(QRules.SessionClass)
                sessConnbject = CreateObject(QRules.ConnectionInfo)


注意:QRules是dll.
执行此代码时,它将引发异常''Can''t create active x component''.但是此代码已在Windows7 32位计算机上成功执行.

在此先感谢
Ani


Note: QRules is a dll.
While executing this code it throws an exception ''Can''t create active x component''. But this code successfully executed in windows7 32-bit machine.

Thanks in advance
Ani

推荐答案

您的dll是否在64位计算机上正确注册.尝试将其放置在C:\Windows\SysWOW64中并进行注册.
Is your dll properly registered on 64 bit machine. Try to place it in C:\Windows\SysWOW64 and register.


尝试将您的应用平台目标从Any CPU更改为x86,然后重新编译.
Try changing your app platform target from Any CPU to x86, and recompile.


这篇关于无法创建活动的x组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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