Direct2d --- the first step

Source: Internet
Author: User

 

Difficulties:
1. Error lnk2019: an external symbol that cannot be parsed [email protected]. This symbol is used in the function "long _ cdecl d2d1createfactory (Enum d2d1_factory_type, struct _ guid const &, void **) "([email protected] @ [email protected] @ [email protected] @ [email protected]) is referenced
D: \ work \ 0819 \ test \ t1 \ debug \ t1.exe: Fatal error lnk1120: 1 external command that cannot be parsed

Solution:

Right-click the project and choose Properties> Configuration Properties> linker> command line.
"Other Options" add d2d1. Lib dwrite. Lib

 

Refer:
1. direct2d tutorial (2) Let's take a look at Hello, world in the D2d world.
Http://www.cnblogs.com/graphics/archive/2011/05/23/1964273.html
2. Use of direct2d in VC
Http://blog.csdn.net/augusdi/article/details/9051823

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.