Compilation of guitoolkit

Source: Internet
Author: User

Recently, when I was working on a system, the interface was ugly. If I started from scratch, it would be too cumbersome to drive the cat to access the Internet, find a proper interface library, and find multiple, found a suitable interface library
Guilib (Official Website:), the interface library is known as free for life and can be used for commercial software. Therefore, you do not have to worry about copyright issues. Most of the other interface libraries require payment, although
Well done, but after all, money is a problem.
After downloading the latest version of guilib, the first issue is to compile the link. Considering the international versatility of the software, we chose the Unicode Method for compilation. More than 20 errors were returned, mainly in the following three aspects:
1. the header file is missing
Message: visualstylesxp. H (6): Fatal error c1083: cannot open
Include File: 'uxtheme. H': no such file or directory. Prompt uxtheme. h
And tmschema. h cannot be found, while schemadef. H is called in tmschema. H, so we need another three files, which are not found in vc6 and are included in
Windows platformsdk is successfully installed on Visual Studio 2003 or Visual Studio 2005.
Both have platformsdk. If you have installed the SDK, you do not have to spend any time downloading the 385.0 mb sdk. By default, all three files are installed in c: \ Program.
Files \ Microsoft Visual Studio 8 \ Vc \ platformsdk \ include
(Uxtheme. h defines the steps for adding a style to the control and the corresponding Code The uxtheme API referenced in the example; tmschema. h
Classes are defined in. I heard that we want to change winver, _ win32_winnt,
_ Win32_windows is defined as 0x0501 (XP is supported .) These three files are downloaded at the following address:

Http://files.cnblogs.com/xcvm/Uxtheme.h.rar

Copy the three files to the guilib directory and
# Include <uxtheme. h>
# Include <tmschema. h>
Change
# Include "uxtheme. H"
# Include "tmschema. H"
You can compile it normally.
Windows? Server 2003 SP1 Platform SDK:
Windows? Server 2003 SP1 Platform sdk iso install (Single Image File)

Http://download.microsoft.com/download/7/5/e/75ec7f04-4c8c-4f38-b582-966e76602643/5.2.3790.1830.15.PlatformSDK_Svr2003SP1_rtm.img

Windows? Server 2003 SP1 Platform SDK full download (multiple compressed packages)

Http://www.microsoft.com/downloads/details.aspx? Familyid = eba0128f-a770-45f1-86f3-7ab010b398a3 & displaylang = en # filelistfile

2. Ado Error
In the "guiadodb. H" file, the specific location of the "msado15.dll" file is not defined. You can change it to the correct location based on your system installation.
3. string error

This is the main error, most of which occurs when Unicode is used for compilation. The original author did not use the MBCS/Unicode-compatible method during the design, so it is necessary
For more information, seeArticle. Http://vckbase.com/document/viewdoc? Id = 1733

Official Website:

Http://www.beyondata.com/

Guitoolkit

Http://www.codeproject.com/KB/library/guitoolkit.aspx? Display = printall & FID = 4311 & DF = 90 & MPP = 25 & Noise = 3 & sort = Position & view = Quick & Fr = 251

    • Download Demo project-403 KB
    • Download full source code-806 KB

Http://www.shengfang.org/blog/p/20080804GUITOOLKITstaticlib.php

Http://www.shengfang.org/blog/p/20080804vcinterface.php

The above URL summarizes many things.

Guitoolkit

Guitoolkit, MFC interface extension library, personal works, great class libraries, completely free.
The official website isHttp://www.beyondata.com/default.htm
From the pre-compiled binary example, guitoolkit has implemented a complete and complex interface solution, which is close to many commercial libraries, such as bcgcontrolbar. unfortunately, due to the relationship between my work, there is almost no documentation or technical support (if so, it would be perfect ).
From the complete source code, you need to modify the compilation in vc6,
1) the header file needs to be retrieved in VC. Therefore, add guitoolkit/sourcecode/personal/extlib/header to VC option.
2) the original project dependency is incorrect. Just remove all of them.
3) Import Statement # import "program filescommon filessystemadomsado15.dll" missing drive letter indication
4) if the path of the System File afximpl. H contained in guiframwnd. H is incorrect, copy the extlib/header from the system's MFC/src directory.
After such processing, you can compile most of the sample code correctly.

I wrote some nonsense in the previous article, and today I will get down to the truth. Because it has been runningMFCProgramSo let's take a lookVc6.0The process and feelings of using a third-party interface library.

at present, there are many types of third-party interface libraries. I checked them online and roughly found xtrme toolkit , bcgcontrolbar , skinmagic , appface , skin ++ , uskin ++ , sygui , libuidk , guitoolkit , gardenui and so on. Besides the latter two types, they are open-source and free, the rest are charged.

Interface library,Xtrme ToolkitIt is a library that has been used by the lab all the time. This library is a well-known interface library integrating professional and beautiful features. It is very powerful and can be said to be a heavyweight interface library. However, there are also a lot of troubles behind the power. Almost all classes in this library inherit fromMFCThe original base class adds many new features on the basis of the original features, but when these features are not required in the program, if you are not familiar with the library orMFCIf you are not familiar with programming, it will take a lot of effort and increase the program's bloated nature. After all, when using third-party libraries, we all hope that the simpler the better, the better. We don't need to spend a lot of energy on it and focus on it.Algorithm. Therefore, the use of this library is for beginners orMFCFor those who are not familiar with interface writing, it may be not that easy.

In the process of modifying the interface, considering that the interface of the platform does not require so many features, you only need to be nice and have better availability. In addition, many of the platforms in the lab are used.Xtrme ToolkitAlmost all of them look the same. So for the above reason, I began to look for other relatively lightweight and beautiful libraries. So I found a suitableGuitoolkit.

GuitoolkitIs a more practical open-source interface library, which providesWindows XPDisplay interface of the style, comparedXtrme Toolkit,
I think this library is a lightweight interface library. If you do not have very high requirements on the interface, but want beautiful results, you can consider using this library. Because the library is open-source, you can add the required features as needed.
You can delete unnecessary features, but it is not easy to tell the truth. Therefore, for those who need convenience, you can find the template you need from the example provided by the Library, and then
Change it to what you want. In this way, it is much more convenient for people who only want to simply use the database.

The following describes howGuitoolkitAdd to your project.

1, DownloadGuitoolkitThenGuilibCompile the project and generateReleaseAndDebugVersionDLLAndLibFile.

ReleaseVersionDLLAndLib:Guitk115.dll guitk115.lib

DebugVersionDLLAndLib:Guitk115d. dll guitk115d. Lib

2, SetGuitk115.dll guitk115d. dllCopy toReleaseAndDebugVersion.

3, SetGuitk115.libAndGuitk115d. LibCopy to your own projectLibFolder, and thenVc6.0OptionsProject-> Settings-> LinkAdd to the project andIuputOption.LibFile Path.

4, SetGuilibCopy the header file to your own projectIncludeFolder.

Of course, you can also useVc6.0OptionsTools-> options-> DirectoriesSetIncludeAndLib.

After the above steps, you should be able to compile your own project. At the beginning, I suggest usingGuitoolkitThe provided example is used for compilation. After the compilation is successful, you can compile your own interface by referring to the example as needed. This article is intended for the first timeGuitoolkitSome help.

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.