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/