Check out this illustration of the functions of COM Single Thread Apartment (STA), Multithread Apartment (MTA), and ATL Auto-thread Module with a testing client-server application.
Latest Apartments & Threading Articles
Understanding COM Apartments, Part I
In the first part of a two-part series on COM apartments, Jeff Prosise describes what apartments are, why they exist, and how to avoid the problems that they introduce.
Understanding COM Apartments, Part II
In the completion of his two-part series on understanding COM apartments, Jeff Prosise illustrates why the lessons learned in last month's discussion of COM apartments are so important by giving concrete examples of how this knowledge can help you develop better and more efficient COM applications.
Latest Developer Videos
More...Latest CodeGuru Developer Columns
Control Statements and Basic Loops in C++/CLI
Become more proficient on the usage of statements to control the flow of execution through a C++/CLI application.

Using File Functions in .NET
There's lot's more hidden under the surface of file functions than might appear at first glance.

Making a Countdown App (Timer)
Count up or count down. Learn how to do it all with Visual Basic.
Maker Project: Creating a Garage Door Opener
Have you ever wanted to control your garage door from your smartphone? Here is your chance. Get your hands dirty with an Arduino Garage Door Controller.