how to get rid of C4458 warning on using gdiplus.h

Prash 21 Reputation points
2022-03-29T07:58:08.093+00:00

On using gdiplus.h, I'm getting C4458 warnings.. how to resolve it without using #pragma warning(disable:4458)?

187824-capture.png

C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,306 questions
{count} votes

1 answer

Sort by: Most helpful
  1. YujianYao-MSFT 4,266 Reputation points Microsoft Vendor
    2022-03-29T08:15:05.893+00:00

    Hi @Prash ,

    This document states:

    we recommend you give local variables names that do not conflict with class member names.

    Best regards,

    Elya


    If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.