谁能帮忙解释一下这个是干什么用的!网上居然没多少有关这个的!

解决方案 »

  1.   

    好像没有CoCreateObject吧, CreateObject倒是有的
      

  2.   

    CoCreateObject  
    InstallShield 11 » InstallScript Language ReferenceThe CoCreateObject function only applies to InstallScript projects.The CoCreateObject function initializes the COM object named by szProgID and returns a reference that can be assigned to a variable of type OBJECT by using the set keyword. Syntax
    CoCreateObject ( szProgID ); Parameters
    Parameter Description 
    szProgID Specifies the program ID of the COM object to be initialized. Return Values
    The reference can be assigned to a variable of type OBJECT by using the set keyword.Additional Information
    To check whether the object was initialized successfully, call the IsObject function.//google到的一点东西
      

  3.   

    貌似是用来连接COM组件的,不过不知道用调用个啥?不过还是谢谢两位了!
      

  4.   

    在windows里和ATL里都没有CoCreateObject,从2楼给出的资料来看,是InstallShield 11提供的一个方法类工厂其实是一种设计模式,LZ有兴趣可以看看《设计模式》这本书,里面有介绍。
    在COM中的应用类工厂这个模式。
      

  5.   

    每个com组件有一个CSIDL,这是组件的ID与一个PROGID,这是COM组件的友好名称,VB中需要使用自动化来创建COM对象,使用自动化方式时需要使用PROGID,而你的CoCreateObject就是使用COM名称来创建组件的方法.
      

  6.   

    哈哈,com组建的学习新手,谢谢楼上的了啊!继续等待更详细的解释!hoho~~~
      

  7.   

    http://topic.csdn.net/u/20080619/17/714d8496-c15e-40fe-be7e-4b7dd5b3d71f.html