使用vb建立DCOM服务器端及客户端应用的详细过程(2)[1]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 yangsaibing 的 blog

使用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

本文关键:com ,dcom ,dcomcnfg.exe
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top