Duilib Library Source code is compiled under VS2010, generally applicable to vs2008 and above version development use, then duilib can be used in vc6.0 project? How do I use the Duilib library in vc6.0? Today, due to work requirements, need to use the Duilib library under vc6.0, Baidu for a long time, did not, so I tried it!1, in vc6.0, a new MFC dialog box project, I use the MFC dialog box, used to do so. 2. Copy the Duilib header file and Lib reference library to the project directory and refer to it. 3, New Duidlg class, this class is defined by itself, corresponding to the window class in this duilib. Compile! Found there will be some bug! The primary error is the "Gdiplus.h" error, that is, the header file was not found: Gdiplus.h.gdiplus.h:no such file or directoryThis is because in the VS2008 version, the automatic integration of the Windows SDK, which contains GDI-related header files, in the vs2003 and vc6.0 and other low versions, to use, you have to use the SDK installation. So, it's down to the Internet.GDiplusDevelopment SDK files. Added to the project, compiled for use. Prompt error:e:\code\duilibinvc6\duilib\control\uiwebbrowser.h: Error c2061:syntax error:identifier ' __rpc__out 'e:\code\duilibinvc6\duilib\control\uiwebbrowser.h (): Error c2061:syntax error:identifier ' __rpc__deref_out_ Opt 'e:\code\duilibinvc6\duilib\control\uiwebbrowser.h: Error c2061:syntax error:identifier ' __rpc__in 'E:\code\duilibinvc6\duilib\control\uiwebbrowser.h (102): Error c2061:syntax error:identifier ' __rpc__in_opt ' E:\code\duilibinvc6\duilib\control\uiwebbrowser.h (103): Error c2061:syntax error:identifier ' __rpc__in_opt ' Viewed below, which is in"Uilib.h"header file, reference the#include "control/uiwebbrowser.h"The browser control supports the header file caused by the direct comment out of this line, because my code is useless. If you want to use it, you can add your own customizations. Re-compile, ok! OK! Here, affixed to my project, just for the use of Duilib, a simple under the VC6.0, MFC uses the Duilib example. Demo vc6.0 interface is very familiar with it! SOURCE Download:GDI Development SDK Download:Gdiplus.zipsource Download: http://download.csdn.net/detail/feb_li/9343769+ |