Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What type of multi-threading does VB6 implement?

Answer Posted / manish

If you've so much as cracked a book on COM, you've undoubtedly come across the term apartment, which describes the constructs in which COM objects are created. If you're unfamiliar with this concept, the often-used analogy of an apartment building may help to clarify.
If you think of the building as an application's process, each apartment is a distinct area in which a COM object can be created. As with the more tangible kind of apartment, a COM apartment is a fairly self-contained unit that shares some similarities with other apartments in the same building/process. But just as there may be lofts, studios, and 2- or 3-bedroom apartments in the same building, there can also be different types of COM apartments within a process. Apartments may also be vacant or have any number of people/objects living in them.
It may be helpful to remember a few key points about COM apartments:
An apartment is not a thread. The one-to-one relationship between threads and single-threaded apartments may lead you to believe that the two terms are interchangeable—they are not.
An object is not an apartment. Objects are created in apartments.
A particular instance of an object can belong to only one apartment.
An apartment's concurrency model, whether it is single-threaded or multi-threaded, cannot be changed after it is created.
A process can have zero or more single-threaded apartments—one for each thread that calls CoInitialize.
A process has one multi-threaded apartment or none at all—all threads that call CoInitializeEx with COINIT_MULTITHREADED share the same apartment.

From microsoft

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Clear property is available in ____,___ control.

1516


How do I force a file dialogue box to reread the currect disk?

1387


How the image application?

951


How do I create a new form in visual basic?

994


Is the Access Engine and Visual Basic Pro good enough for database work?

1615


What is visual basic used for?

990


How would you map properties to controls by using ActiveX Control Interface Wizard?

2183


How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation?

1480


Explain about manipulating the recordset object

947


How would you attach pictures in Treeview Control?

1924


what are the Types of LockEdits in RDO?

2166


What is the use of NEW Keyword? Explain.

1934


Difference between ActiveX Exe and Dll.

1887


Why API functions are Required?

2190


Types of LockEdits in RDO.

2037