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
Comparing the stdio and iostream C++ Libraries
It's essential to know the differences in these libraries and use them correctly. This brief tutorial will guide you.

Base64 Encoding from C#
Using the Base64 system isn't as archaic as you might think. Refresh your skills here.

Creating a Memory Dump Process in Visual Basic
Learn how to create a dumping process that can help you when your computer locks up.
Influencing Users: Compliance and Conformity
Learn about two common influence techniques, compliance and conformity, as well as how to design for them.