Home Dashboard Directory Help
Search

VS 2010 SP1 Causes /doc compilation to fail by jdotedot


Status: 

Closed
 as Fixed Help for as Fixed


7
0
Sign in
to vote
Type: Bug
ID: 651057
Opened: 3/12/2011 9:53:05 AM
Access Restriction: Public
0
Workaround(s)
view
4
User(s) can reproduce this bug

Description

CHANGES NEEDED TO GET VS2010 SP1 TO WORK

In C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxanimationcontroller.h I made the changes shown below

// XML comment fixed to get around C4635 warning that appeared when I installed SP1.
// "<returns>" below was changed to "</returns>"
    /// <summary>
    /// Converts a CAnimationColor to COLORREF.
    /// </summary>
    /// <returns>
    /// Current value of animation color object as COLORREF.
    /// </returns>
    /// <remarks>
    /// This function internally calls GetValue. If GetValue for some reason fails, the returned COLORREF will contain default values for all color components.
    /// </remarks>
    operator COLORREF()
    {
        COLORREF color;
        GetValue(color);
        return color;
    }

    
In C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\afxrendertarget.h I made the changes shown below

// XML fixed to get around C4635 warning that appeared when I installed SP1.
// "bounds.left &gt bounds.right" below changed to "bounds.left > bounds.right"
/// <summary>
    /// Retrieves the bounds of the geometry.</summary>
    /// <returns>
    /// If the method succeeds, it returns TRUE. Otherwise, it returns FALSE.</returns>
    /// <param name="worldTransform">The transform to apply to this geometry before calculating its bounds.</param>
    /// <param name="bounds">When this method returns, contains the bounds of this geometry. If the bounds are empty, this will be a rect where bounds.left > bounds.right. You must allocate storage for this parameter.</param>
    BOOL GetBounds(const D2D1_MATRIX_3X2_F& worldTransform, CD2DRectF& bounds) const;
Details
Sign in to post a comment.
Posted by foolamancer on 11/11/2011 at 12:08 AM
Hm, this bug just got reintroduced on my system with some update to Visual Studio 2010 yesterday
Posted by Jsamuel on 4/11/2011 at 6:15 PM
I'm getting a similar issue with:
warning C4635: XML document comment applied to 'CMFCRibbonCategory.OnKey(System.UInt32)': badly-formed XML: Thoe following tags were not closed: summary.

It appears afxribboncategorgy.h only has 2 //'s, rather than 3 on the line with the closing summary tag.

VS2010 SP1.
Posted by Microsoft on 3/21/2011 at 11:13 AM
Hello,

Thanks for the report. This issue has been fixed in MFC for the next major release of Visual Studio.

Pat Brenner
Visual C++ Libraries Development
Posted by Microsoft on 3/13/2011 at 7:09 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by Microsoft on 3/13/2011 at 7:09 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by jdotedot on 3/12/2011 at 10:00 AM
This is frustrating. I can't get the editor to accept "& gt ;" with the spaces taken out. In the afxrendertarget.h comment above, the editor changed "& gt ;" to ">" so you need to substitute the "& gt ;" back.
Posted by jdotedot on 3/12/2011 at 9:57 AM
PLEASE NOTE: In the afxrendertarget.h comment above, the editor changed ">" to ">" so you need to substitute the ">" back.
Sign in to post a workaround.