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 would you create properties by using class Builder Wizard?

2117


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

1466


DHTML Is used for what?

1470


Why does everybody say I should save in TEXT not BINARY?

1144


How do I make the mouse cursor invisible/visible?

930






How would you create properties in ActiveX Control?

1437


How do I prevent multiple instances of my program?

979


What is the Windows API?

1018


What are the scope of the class?

1543


Difference between ActiveX Control and Standard Control.

2128


How can you filter out specific type of file using file system controls?

1368


Explain the creation project schedule.

592


What is the use of Data Form Wizard?

1557


Can a VB application be an OLE server?

982


How many ways we can access file using VB?

1699