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

Is it possible to call oracle database through ADO control or Object?

0 Answers  


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

0 Answers  


To connect the Data Control with Back end What are all the properties to be set?

1 Answers  


How do you zoom in visual basic?

0 Answers  


What is the use of stretch property in Image control?

1 Answers  






Explain the working of templates?

0 Answers  


I want to develop a stand alone application which can communicate with the existing applications in the system. On which this application should be based on: Standard Exe, Active-X Exe, Active-X Dll.

2 Answers  


How to compare inserted text in (textbox1.text) with existing database value in (Sqldatasource1) in visual studio 2005 ?

1 Answers  


Draw Sequence Modal of DAO and Explain?

0 Answers  


what component is used in vb to link to the database?

2 Answers   Satyam,


Draw Sequence Modal of RDO? Explain.

0 Answers  


what is the diff between inprocess and out of process ?

1 Answers  


Categories