使用vb建立dcom服务器端及客户端应用的详细过程(2)
本节介绍如何建立dcom客户端应用,及其注意事项。(本人使用的是西文版vb6)
1.打开vb,在"file"菜单单击"new project",选择"standard exe"并单击"ok".
2.在"project"菜单, 单击"references".
3.单击"browse",选择"c:\dcomdemo\server\prodcomdemoserver.exe",单击"ok",
并选中该引用.
4.在工程里插入一个模块,放置两个commandbutton, 两个textbox,以及三个label到form1上
. 设置如下属性:
control name property value
------------------------------------------------------------------
module module1 name moddcomdemoclient
form form1 name frmdcomdemoclient
caption dcom demo - client
commandbutton command1 name cmdservertime
caption &get server time
command2 name cmdcomputenumbers
caption &compute numbers
text box text1 name txtx
tabstop true
tabindex 0
text2 name txty
tabstop true