- Download and install wxMSWS from here.
- Let me assume wxWidgets dir to c:\wx2.
- I used version 2.8.9.
- Edit header file to enable GLCANVAS and ODBC
- Open setup.h in include\wx\msw.
- Edit it as:
- #define wxUSE_GLCANVAS 1
- #define wxUSE_ODBC 1
- Save it.
- Rebuild it as described in this page:
- Open wx.dsw in build\msw.
- If you are using VS2008, convert the project file to newer versions. And then save the projects and solution files.
- Choose "Unicode Debug" and "Unicode Release" as your build target.
- Then build it.
- To create your original project, you have to prepare an empty project file for Win32 application as described in this page.
- Win32 application &&
- Windows application &&
- Empty application
- Set your wxWidgets dir as an environment variable WXWIN.
- Then configure the project file as follows after adding one empty .cpp file:
- Include path:
- [Debug] $(WXWIN)\lib\vc_lib\mswud;$(WXWIN)\include
- [Release] $(WXWIN)\lib\vc_lib\mswu;$(WXWIN)\include
- Preprocessor definition:
- [Debug] WIN32;_DEBUG;__WXMSW__;__WXDEBUG__;_WINDOWS;NOPCH
- [Release] WIN32;__WXMSW__;_WINDOWS;NOPCH
- Library Path:
- [Common] $(WXWIN)\lib\vc_lib
- Additional Library:
- [Debug] wxmsw28ud_html.lib wxmsw28ud_core.lib wxbase28ud.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexud.lib wxexpatd.lib winmm.lib comctl32.lib rpcrt4.lib wsock32.lib odbc32.lib
- [Release] wxmsw28u_html.lib wxmsw28u_core.lib wxbase28u.lib wxtiff.lib wxjpeg.lib wxpng.lib wxzlib.lib wxregexu.lib wxexpat.lib winmm.lib comctl32.lib rpcrt4.lib wsock32.lib odbc32.lib
SyntaxHighlighter
2009/01/31
wxWidgets Setup Memo for VS2008SP1
登録:
コメントの投稿 (Atom)
0 件のコメント:
コメントを投稿