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

Prash 21 Reputation points

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


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

    Hi @Prash ,

    This document states:

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

    Best regards,


    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.