Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB Components
Password Reminder
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 5th, 2005, 11:50 AM
Authorized User
Join Date: Oct 2004
Location: Hyderabad, Andhra Pradesh, India.
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
Default What is Meant by Instancing in Class Modules


I have got a question regarding DLL and EXE.

While creating a DLL or EXE , we use Instancing property. What does it mean. What and where we have to use each instances.

If i get some illustrative examples, it will be better.


Ramkumar A D
Reply With Quote
  #2 (permalink)  
Old February 2nd, 2005, 12:09 AM
Authorized User
Join Date: Jan 2005
Location: Delhi, Delhi, India.
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts

An activeX has 4 instencing property

Private : means that other applications arent allowed access to type library information about the class, and cannot create instances of it. Private objects are only for use within your component.

PublicNotCreatable : means that other applications can use objects of this class only if your component creates the objects first. Other applications cannot use the CreateObject function or the New operator to create objects from the class.

MultiUse : allows other applications to create objects from the class. One instance of your component can provide any number of objects created in this fashion.
An out-of-process component can supply multiple objects to multiple clients; an in-process component can supply multiple objects to the client and to any other components in its process.

GlobalMultiUse : is like MultiUse, with one addition: properties and methods of the class can be invoked as if they were simply global functions. Its not necessary to explicitly create an instance of the class first, because one will automatically be created.

Amit Jain
Sr. Software Engineer
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to pass values between class modules ? yvon Beginning VB 6 1 December 7th, 2005 05:13 PM
What is meant by Forum Locked jjamjatra Forum and Wrox.com Feedback 3 September 30th, 2005 10:02 AM
Class modules lallemantdo Excel VBA 4 August 24th, 2005 08:35 PM
Class Modules ezzedin Beginning VB 6 2 June 9th, 2003 03:04 AM

All times are GMT -4. The time now is 09:51 PM.

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