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

Hi, I am USINg QTP tool for automation. Where VB Script have to use. I want to read a row from the table present in .Doc File and to paste in excel. Could you please assist me or give me the code to get it. I am new in this technology.

1877


What is the use of Imagelist Controls ?

1467


How would you create your application in DHTML?

1413


Which method is used to write context Into file?

1581


Difference between Linked Object and Embedded Object?

1802






What is the use of command Object?What are the various types of variables?

607


What is difference between datagrid and flexgrid?

12601


What is the use of parameters collection?

1561


How would you create Visual basic Document file?

1921


How can you get selected file from file system Control?

1550


How do I make my applications screen-resolution independent?

1032


What are the properties of datacontrol?

1535


What are the Internet tools available in VB6.0?

2099


Types of LockEdits in DAO?

1687


____ property of menu cannot be set at run time.

1171