是德科技
直播中

朱翼

7年用户 201经验值
私信 关注
[问答]

vrf ActiveX使用中的错误445

>对于你们这些人来说这可能不是什么新鲜事,但对我来说也是如此。非常好的建议 - 它肯定会让事情变得更容易。
一般情况下的上下文处理程序很棒,你甚至可以做一些像这样的特殊事情。
永远不要忽视您的SendTo菜单!
按住Windows键并键入R,或单击开始 - >运行。
在编辑框中键入SendTo并按Enter键,您的SendTo菜单将在资源管理器窗口中打开。您可以在此处放置任何内容,但快捷方式最有用。
例如,键入Alt-F Rt。
DN。
输入(或右键单击并选择New-> Shortcut。我猜这很明显我讨厌老鼠!)。
在“创建快捷方式”向导中,键入regsvr32并按Enter键。
在“名称”编辑框中,键入Register Component并按Enter键。
创建另一个新快捷方式
这次输入regsvr32 -u和Enter。
将其命名为Unregister Component.Forever之后,您可以右键单击导出DllRegisterServeror DllUnregisterServer(任何COM或ActiveX文件)并选择SendTo-> Register Component或Send To-> Unregister Component的任何文件,您将获得这些功能。
对于键盘挑战,任何项目的上下文菜单由Shift-F10调出,然后按n打开发送到子菜单。新的Windows外壳充满了这样的很酷的东西,很多用户都不知道。-SHAWN
----您目前订阅vrf为:r***@soco.agilent.com要订阅,请发送空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至“离开”
-vrf@it.lists.it.agilent.com“。要向此邮件列表发送邮件,请发送电子邮件至”vrf@agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  > This may not be new to some of you, but it was to me.

Excellent advice - it sure does make things easier. Context handlers in
general are awesome and you can even do something like this particular one
yourself. Never neglect your SendTo menu! Hold down the Windows key and type
R, or click Start->Run. Type SendTo in the edit box and hit Enter, and your
SendTo menu will open in an explorer window.

You can put anything you want here, but shortcuts are most useful. For
instance, type Alt-F Rt. Dn. Enter (or right click and select New->Shortcut.
I guess it's pretty obvious I hate mice!). In the Create Shortcut wizard,
type regsvr32 and hit Enter. In the Name edit box, type Register Component
and hit Enter. Create another new shortcut. This time, type regsvr32 -u and
hit Enter. Name it Unregister Component.

Forever after, you can right click any file that exports DllRegisterServer
or DllUnregisterServer (any COM or ActiveX file) and select Send
To->Register Component or Send To->Unregister Component and you get these
functions. For the keyboard challenged, the context menu for any item is
called up by Shift-F10, then press n to open the Send To submenu.

The new Windows shell is positively brimming with cool stuff like this that
not a lot of users know about.
-SHAWN-


---
You are currently subscribed to vrf as: r***@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com".  
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".

回帖(3)

袁嫚玲

2018-9-7 16:40:15
Ashley,这意味着您正在尝试从空变量中获取值。
为了“初始化”变量,需要将一个值放入其中。例如x = 0或value = 0。
尝试在调用之前将变量设置为某个东西。希望帮助。标记-----原始消息-----来自:Ashley Derrick [mailto:ashley@smartsolutions.karoo.co.uk]发送:星期二,
2003年11月18日上午7:13到:VRFS主题:[vrf] ActiveX使用中的错误445嗨,当我尝试使用ActiveX自动化运行程序时,我一直收到'初始化错误'445。
这意味着什么?
“声明的变量_____尚未初始化”我已经在错误发生之前声明了全局变量OK(我认为)。
需要帮助 - 我可以'失去更多的头发!
谢谢,Ashley ---您目前订阅了vrf:Mark.Goldberg@ATK.COM订阅时发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至
“leave-vrf@it.lists.it.agilent.com”。要向此邮件列表发送邮件,请发送电子邮件至“vrf@agilent.com”。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。
---您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至“
vrf@it.lists.it.agilent.com“。要向此邮件列表发送邮件,请发送电子邮件至”vrf@agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Ashley, It means that you are trying to get a value from an empty variable. In order to 'initialize' the variable it needs to have a value put into it. something like x=0 or value=0. Try setting the variable to something before it is called for. Hope that helps. Mark  -----Original Message-----From: Ashley Derrick   [mailto:ashley@smartsolutions.karoo.co.uk]Sent: Tuesday, November   18, 2003 7:13 AMTo: VRFSubject: [vrf] Error 445 in   ActiveX usage  Hi,     I keep getting an 'initialisation error' 445 when   I try to run a program using ActiveX automation. What does this mean   please?     "Declared variable _____   has not yet   been initialized"     I have declared the Global variable OK   (I think) prior to the error ocurring.     Help needed -- I can't afford to lose any   more hair!!        Thanks,     Ashley---You are currently   subscribed to vrf as: Mark.Goldberg@ATK.COMTo subscribe send a blank email   to "join-vrf@it.lists.it.agilent.com".To unsubscribe send a blank email to   "leave-vrf@it.lists.it.agilent.com".To send messages to this mailing list,   email "vrf@agilent.com". If you need help with the mailing list send a   message to "owner-vrf@it.lists.it.agilent.com". ---You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".To send messages to this mailing list,  email "vrf@agilent.com".  If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

李秀云

2018-9-7 16:53:22
嗨阿什利。>对不起如果我问的是愚蠢的问题。每个人都知道唯一的愚蠢问题是那些没有被问到的问题,所以不要忘记提问!>附上是示例是的,我看到了几个问题。
你声明了一个名为MSComm的变量,然后尝试执行“set MSComm1 = CreateObject(MSComm)”。首先,变量名必须匹配。其次,CreateObject的参数是一个字符串,而不是其他类型的东西。这就是错误来自的地方。
尝试访问一个名为MSComm的变量将其传递给了创建对象,并发现它尚未初始化。接下来,您要创建的对象的名称是“MSCommLib.MSComm”。将声明中的您的变量名称更改为MSComm1
并更改CreateObject调用,它将工作。-SHAWN ----您目前订阅vrf为:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com
“。要取消订阅,请发送一封空白电子邮件至”leave-vrf@it.lists.it.agilent.com“。要发送邮件到此邮件列表,请发送电子邮件至”vrf@agilent.com“。如果您需要有关邮件列表的帮助
发送消息给“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Hi Ashley.

> Sorry If I am asking dumb questions.

Everybody knows the only dumb questions are those not asked, so don't feel
bad about asking!

> Attached is the example

Ah yes, I see a couple problems. You declared a variable named MSComm and
then tried to execute "set MSComm1 = CreateObject(MSComm).

First, the variable names must match. Second, the argument to CreateObject
is a string, not something of another type. This is where the error came
from. VEE tried to access a variable called MSComm to pass it to
CreateObject, and found that it hadn't been initialized yet. Next, the name
of the object you want to create is "MSCommLib.MSComm". Change the name of
your variable in the declare to MSComm1 and change the CreateObject call and
it will work.
-SHAWN-


---
You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list,  email "vrf@agilent.com". 
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

朱翼

2018-9-7 16:59:21
嗨,当我尝试使用ActiveX自动化运行程序时,我不断收到“初始化错误”445。
这意味着什么呢?“声明的变量_____尚未初始化”我在错误发生之前已经宣布了全局变量OK(我认为)。需要帮助 - 我不能再失去任何头发!!谢谢,Ashley-
- 您目前订阅了vrf:r***@soco.agilent.com要订阅,请发送一封空白电子邮件至“join-vrf@it.lists.it.agilent.com”。要取消订阅,请发送空白电子邮件至“leave-vrf”
@ it.lists.it.agilent.com“。要发送邮件到这个邮件列表,请发送电子邮件至”vrf@agilent.com“。
如果您需要有关邮件列表的帮助,请发送邮件至“owner-vrf@it.lists.it.agilent.com”。

以上来自于谷歌翻译


     以下为原文

  Hi, I keep getting an 'initialisation error' 445 when I try to run a program using ActiveX automation. What does this mean please? "Declared variable _____   has not yet been initialized" I have declared the Global variable OK (I think) prior to the error ocurring. Help needed -- I can't afford to lose any more hair!!  Thanks, Ashley---You are currently subscribed to vrf as: [email=r***@soco.agilent.com]r***@soco.agilent.com[/email]To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".To send messages to this mailing list,  email "vrf@agilent.com".  If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
举报

更多回帖

发帖
×
20
完善资料,
赚取积分