Zint compilation on the Win32 platform, and zint

Source: Internet
Author: User

Zint compilation on the Win32 platform, and zint

Zint is an open-source Code library that supports over 50 types of Code, including Code-128, Data Matrix, EAN-128, UPC/EAN, ITF, QR Code, Code 16 k, ipv417, microipv417, LOGMARS, Maxicode, GS1 DataBar, Aztec, Composite Symbols, etc. Basically, you can use the bar code you have seen to encode it, it supports direct output of PNG format image files and bitmap byte arrays.

To use it in. net, you need to re-compile it on the windows platform. The following describes my compilation process.

1. Download the source code of the zint library from the zint project official website. It depends on the libpng library and zlib library. These two libraries are also open source libraries and can be found on the sourceforge website;

2. decompress the package and go to the win32 Directory. There is a solution in VS format. Switch to the Release generation mode to compile the package. Some compilation errors are found, at this time, you need to adjust the compilation and link options in the project properties, including the header files and lib files of the libpng library and zlib library, and use absolute paths in the source project, we will change it to a relative path;

3. Modify the function to be exported in the project and add the _ stdcall call convention, so that it can be used in the VB6 environment;

4. F6 compilation. The dll file is successfully generated.

 

Source code and compiled dll: http://pan.baidu.com/s/1bn1BlTl

Zint project: http://sourceforge.net/projects/zint/

Related Article

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.