Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Components
|
VB Components Issues specific to components in VB.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Components section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2004, 09:07 AM
Authorized User
 
Join Date: May 2004
Posts: 83
Thanks: 0
Thanked 1 Time in 1 Post
Default The Instancing Property of VB Classes

The Instancing property controls how a class in a COM component created in VB can be accessed by its clients. Two of the values available for this property are:

    1) SingleUse
    2) MultiUse

Books state that with the Instancing property set to SingleUse, for every object that a client creates, a new instance of the class is started. And if the Instancing property is set to MultiUse then all the objects are created from a single instance of the class.

I am confused with this explanation. What does it mean to create multiple objects from a single instance of a class and to start a new instance of the class for each object that's created. Please give me a simple explanation of what exactly does it mean.

ejan

ejan
__________________
ejan
 
Old June 25th, 2004, 04:56 PM
tnd tnd is offline
Authorized User
 
Join Date: Jun 2004
Posts: 40
Thanks: 0
Thanked 0 Times in 0 Posts
Default

see your post in the VB Pro forum






Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Classes in VB.net pwalkins ASP.NET 2.0 Basics 1 October 6th, 2008 01:59 PM
Help with Partial classes: C# -> VB.NET Antilles128 BOOK: Professional ASP.NET 2.0 Design: CSS, Themes, and Master Pages ISBN: 978-0-470-12448-2 1 December 23rd, 2007 12:52 AM
classes for retriving MAC address in VB .NET mistrypremal Pro VB.NET 2002/2003 9 August 10th, 2007 12:12 PM
What is Meant by Instancing in Class Modules ramk_1978 VB Components 1 February 2nd, 2005 12:09 AM
Instancing Property Of VB Classes ejan Pro VB 6 2 July 18th, 2004 03:15 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.