Interface library duilib compiled into static library

Source: Internet
Author: User

This library provides a very good interface, which is also used by the Huawei Network Disk client.

Many people do not know how to compile a static library, which is actually very simple.

First, set the duilib project in. Change the configuration type to static library.

Step 2 modify the macro in the uilib. h header file.


# Define uilib_api
# Pragma comment (Lib, "comctl32.lib ")
# Pragma comment (Lib, "riched20.lib ")

# Pragma comment (Lib, "oledlg. lib ")
# Pragma comment (Lib, "winmm. lib ")


Compile the file to see if the generated directory contains a duilib. Lib file. Note that it may not be the bin directory.

Modify the link item of the first demo. After compilation, copy the required skin file to any place and run it.

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.