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



what are Instancing for classes provided by ActiveX component like prive, publicnotcreatable,Singl..

Answer / 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

More Visual Basic Interview Questions

What is the use of property page Wizard in ActiveX Control?

0 Answers  


What is vbs file?

0 Answers  


what is Option Implicit

12 Answers   Cognizant, Primus Global,


What is the difference between a PictureBox and Image control?

3 Answers  


Write the Steps in Creating an ActiveX Control?

0 Answers  






Is VB comes under Object Oriented Programming ?

1 Answers  


How do I set the Windows wallpaper at runtime?

0 Answers  


What is the max size of textbox?

1 Answers  


which property is used to change to some value to access a identity column in datacontrols?

0 Answers  


How do I implement an accelerator key for a text box?

0 Answers  


How do I create a window with a small title bar as in a floating toolbar?

0 Answers  


Is there any Edit method in ADO Data Access method?

3 Answers  


Categories