Microsoft KB Archive/150100

= DOC: Technote 64 Incorrect About ThreadingModel Registration =

Article ID: 150100

Article Last Modified on 11/21/2006

-

APPLIES TO

 Microsoft Foundation Class Library 4.2, when used with:  Microsoft Visual C++ 4.1 Subscription

 Microsoft Visual C++ 4.2 Enterprise Edition

 Microsoft Visual C++ 4.2 Professional Edition 

-

<div class="notice_section">

This article was previously published under Q150100

<div class="summary_section">

SUMMARY
Technote 64 states the following: <pre class="fixed_text">  Controls that support apartment-model threading should indicate this capability in the registry, by adding the key ThreadingModel with a  value of Apartment under their class ID registry entry. To cause this key to be automatically registered for your control, pass the afxRegApartmentThreading flag in the sixth parameter to  AfxOleRegisterControlClass. This information is not correct. Apartment-model threading is not supported by MFC in Microsoft Visual C++ for Windows, version 4.1. The afxRegApartmentThreading value is not used in this version and the registry is not modified to reflect apartment-model threading support.

This documentation error was fixed in Visual C++ version 5.0. The following text was added to Technote 64 in Visual C++ 5.0: <pre class="fixed_text">  Note that apartment-model threading is only supported in Visual C++ versions 4.2 or later.

Keywords: kbautomation kbbug kbctrlcreate kbdocerr kbdocfix kbfix kbinprocsvr kbvc500fix KB150100

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.