question

DanielShepherd-8507 avatar image
0 Votes"
DanielShepherd-8507 asked Castorix31 commented

So called "direct2d quickstart"; the code is buggy, does not work.

I am following the tutorial at https://docs.microsoft.com/en-us/windows/win32/direct2d/getting-started-with-direct2d#drawing-a-simple-rectangle and I have gotten quite a few errors. here is my vs2019 view:113569-screenshot-2021-07-11-161734.png And I got a (not surprising) 15 errors. This always happens when I follow tutorials on win32. help.


c++
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Maybe you did not perform Step1 – Step4? By the way, the sample does not recommend pbluebrush.


0 Votes 0 ·

1 Answer

Castorix31 avatar image
0 Votes"
Castorix31 answered Castorix31 commented

All Direct2D samples work fine
Start from Part 1: Create the DemoApp Header
+ samples from SDK : Windows-classic-samples/Samples/Win7Samples/multimedia/Direct2D


· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

namespace "d2d1" has no member "size_u" step 3 part 2

0 Votes 0 ·
Castorix31 avatar image Castorix31 DanielShepherd-8507 ·

SizeU
declared in D2D1helper.h

0 Votes 0 ·

i ahve already included the "D2D1helper.h" header

0 Votes 0 ·
Show more comments