定义没问题,但不能加 New,例如引用"Microsoft VBScript Global"后 可以定义如"Dim x As VBScript_Global.GlobalObj",却不能Set ..= New ..
不是所有的对象都能使用Set New来创建实例
不能用Set New来创建实例的对象应怎样使用啊?
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"
可以定义如"Dim x As VBScript_Global.GlobalObj",却不能Set ..= New ..