项目遇到的问题 [英] Problem to the project

查看:49
本文介绍了项目遇到的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


完成这些步骤后

Hi,
After having run these steps

Register COM DLL file in Windows 7
Start --> Run --> comexp.msc
Navigate to Console Root - Componet Services - Computers - My Computer - COM+ Applications.
Right click on 'COM+ Applications' and create New Application.
Follow the wizard carefully. Hit Next. Create an Empty Application. Name it (mycomapp1 for instance). Make sure Server application radio box is selected. Pick the user account based on the requirement. Hit Next. Next. Finish.
Now you have created a COM+ application named mycomapp1.
Now, you need to add individual COM components to it.
Expand mycomapp1 from the list. Right click on Components. Pick New Component. 
Hit Next in the wizard. This next wizard screen is up to you. I would pick 'Install New components' if I haven’t run a regsvr32 or regasm on it. Pick the told or the dll (containing the tlb) file. And go ahead.. That’s how you do it.



从该项目中注册.tlb文件,
文件

我遇到这个问题了



运行此VB脚本时



to register .tlb file from this project, 
file

I get this problem



when running this VB script

Dim objFunc
Dim dblValue1, dblValue2, dblValue3, dblResult

Set objFunc = CreateObject("CSDemo.ComClass1")
dblValue1 = "A1"
dblValue2 = "A2"
dblValue3 = "A3"
dblResult = objFunc.Func1(CStr(dblValue1), CStr(dblValue2), CStr(dblValue3))
MsgBox dblResult

'Set objFunct = Nothing



在同一台机器上.为什么?


非常感谢&最好的问候,华敏



within the same machine. why?


Many Thanks & Best Regards, Hua Min

推荐答案

是的,但这不是VBS的论坛

Yea but this is not the forum for VBS 

我假设主持人会将此线程移至OT,因为他们无法将其移至Technet.

I assume a moderator will move this thread to OT because they cannot move it to Technet.

VBS论坛是

https://social.technet.microsoft. com/Forums/scriptcenter/zh-CN/home?forum = ITCG

亲自尝试


这篇关于项目遇到的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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