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

Which method is preferred to save data like database to the disk?

0 Answers  


What is the need of tabindex property is label control?

0 Answers  


It is possible to access Text (x.txt) files? Explain.

0 Answers  


What is a datacontrol?

1 Answers  


How to load and unload child forms.

0 Answers  






When/Why should I use Option Explicit?

0 Answers  


Why visual basic is used?

0 Answers  


How would you create Visual basic Document file?

0 Answers  


What is ActiveX Control?

0 Answers   ABC,


Name and define the logical tiers in a traditional 3-tiered architecture?

1 Answers  


Does VB support object-oriented concepts? Explain..

3 Answers  


Which controls have refresh method?

2 Answers  


Categories