总得先定义以后才能SET呀。
dim x as new classname或
dim x as classname 
set x=new classname

解决方案 »

  1.   

    定义没问题,但不能加 New,例如引用"Microsoft VBScript Global"后
    可以定义如"Dim x As VBScript_Global.GlobalObj",却不能Set ..= New ..
      

  2.   

    不是所有的对象都能使用Set New来创建实例
      

  3.   

    不能用Set New来创建实例的对象应怎样使用啊?
      

  4.   

    The component must be creatable, then can be use New keyword.If you develping it in ATL, you must add the interface implement in the ENTERANCE,If you develping it in VB, the instance property of the class must not be "PublicNoCreatable" or "Private"