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到的一点东西
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到的一点东西
在COM中的应用类工厂这个模式。