Microsoft KB Archive/264458

= BUG: ATL Object Wizard: &quot;Ready State&quot; Stock Property Does Not Appear =

Article ID: 264458

Article Last Modified on 12/11/2003

-

APPLIES TO

 Microsoft ActiveX Template Library 3.0, when used with:  Microsoft Visual C++ 6.0 Enterprise Edition

 Microsoft Visual C++ 6.0 Professional Edition

 Microsoft Visual C++ 6.0 Standard Edition 

-

<div class="notice_section">

This article was previously published under Q264458

<div class="symptoms_section">

SYMPTOMS
When you use the Microsoft Visual C++ 6.0 ATL Object wizard to create a Full control, the Ready State property is not listed on the Stock Properties tab.

<div class="resolution_section">

RESOLUTION
To manually add the ReadyState property to the control, perform the following steps: <ol>  Add the following code to the interface definition in the control's Interface Definition Language (IDL) file: interface IMyControl : IDispatch { ...  [propput, id(DISPID_READYSTATE)] HRESULT ReadyState([in]long state); [propget, id(DISPID_READYSTATE)] HRESULT ReadyState([out, retval]long* pstate); ... };                   </li>  Add the following code to the BEGIN_PROP_MAP definition in the control's header (.h) file: BEGIN_PROP_MAP(CMyControl) ...  PROP_ENTRY(&quot;ReadyState&quot;, DISPID_READYSTATE, CLSID_NULL) ... END_PROP_MAP </li>  Add the following member variable to the control class definition in the control's header (.h) file: LONG m_nReadyState; </li></ol>

<div class="status_section">

STATUS
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

Additional query words: readystate, &quot;stock property&quot;

Keywords: kbbug kbwizard KB264458

-

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

© Microsoft Corporation. All rights reserved.