what are Instancing for classes provided by ActiveX
component like prive, publicnotcreatable,SingleUse,
GlobalSinleUse,MultiUse.

Answer Posted / cp

1. Private - Client Applications cannot create the class.
Project containing class only can create object.
2. PublicNotCreatable- Its an internal creatable
class. Client application can use the instance of class but
cannot create instance on their own.
3 SingleUse – for ActiveXexe only. Every time create
new object service will instantiate new ActiveXexe object.
And each instance will get own copy of global variable.
4 GlobalSingleUse – Same as single use only
difference is you can use it as a global function.
4. MultiUse – Default. Allow any number of instance
creatable from internally as
well as externally.
5. GlobalMultiUse – Same as Multiuse only difference
is explicitly instantiation of class is not required to
access methods and properties.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I speed up control property access?

1192


How would you add column headers in listview control?

1840


Is it possible to change menu runtime using API? If yes? Specify the function names.

1748


What is the use of Tabledef?

1754


What is shortcut menu and explain "The ole control's shortcut menu".

759






What is controls in vb?

752


What is vbs file?

744


What is meant by building a recordset.

797


What are the tools in visual basic?

714


What is visual basic used for?

770


Is visual basic still used?

750


How many objects resides in ADO ?

1679


What is instantiating?

1635


How would you activate animation control?

2053


What is the use of ActiveX Documents?

1765