How do I detect a drawing error using the MFC Direct2D classes

Purple 0 Reputation points
2025-08-28T00:08:27.2133333+00:00

I am developing a desktip application using the MFC Direct2D wrapper classes (most beginning with CD2D). For the most part it is working, but occasionally drawing fails. How do I detect what error codes may have been returned from the EndDraw method?

Developer technologies | Visual Studio | Debugging
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.