Freetutes.com

VB6 beginners tutorial - Learn VB6

Advanced VB6 tutorial - Learn Advanced VB6

Systems Analysis - System analysis and Design tutorial for Software Engineering


You are here: Visual Basic > Advanced VB6 tutorial > Chapter 12

Using MultiUse Instancing for Object Sharing

A MultiUse class can supply more than one instance of itself per copy of its component.

A single instance of a COM component can create multiple instances of a MultiUse class. The first request for a class instance starts the COM component. All subsequent requests are serviced by the already running server. If a client application requests several instances of a ClassA, for example, one server creates all instances of ClassA.

Using GlobalMultiUse Instancing to Avoid Explicit Object Creation

All that has been said about GlobalSingleUse Instancing applies to GlobalMultiUse as well. The difference, of course, is that the latter provides a MultiUse object rather than a SingleUse object.


  

<< Previous | Contents | Next >>

Home | About Us | Privacy Policy | Contact Us

Copyright © Freetutes.com | All Rights Reserved