• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

ActiveX Dll

Hi All,

In making an activex DLL, I found there is an option called instancing for us to set.

What is the effect in settting different values for this option.

e.g. Private, PublicNotCreateable, MultiUse & GloablMultiUse.

Please advise. Thanks.
0
ee_lcpaa
Asked:
ee_lcpaa
1 Solution
 
danaseamanCommented:
Private means that other applications aren’t allowed access to type library information about the class, and cannot create instances of it. Private objects are only for use within your component.

PublicNotCreatable means that other applications can use objects of this class only if your component creates the objects first. Other applications cannot use the CreateObject function or the New operator to create objects from the class.

MultiUse allows other applications to create objects from the class. One instance of your component can provide any number of objects created in this fashion.
An out-of-process component can supply multiple objects to multiple clients; an in-process component can supply multiple objects to the client and to any other components in its process.

GlobalMultiUse is like MultiUse, with one addition: properties and methods of the class can be invoked as if they were simply global functions. It’s not necessary to explicitly create an instance of the class first, because one will automatically be created.

SingleUse allows other applications to create objects from the class, but every object of this class that a client creates starts a new instance of your component. Not allowed in ActiveX DLL projects.

GlobalSingleUse is like SingleUse, except that properties and methods of the class can be invoked as if they were simply global functions. Not allowed in ActiveX DLL projects.

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now