Why am I getting an error on D2D1_ELLIPSE structure?

CDev-8220 300 Reputation points
2023-08-04T23:41:14.0466667+00:00

I'm getting an exception on this simple code.

	pEllipse = D2D1::Ellipse(
		D2D1::Point2F(100.0f, 100.0f),
		50.0f,
		50.0f 
	);

error

I can't figure out why.

Edit:

I can't delete this post, but actually, I realize the problem is due to something else, so I will have to go through the code from before that point.

I'll review this.

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,905 questions
{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.