<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ivaneeo's blog

    自由的力量,自由的生活。

      BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
      669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks

    Step 1 – Install Visual Studio 2008

    1. If you don’t have it, get the express edition here: http://www.microsoft.com/Express/VC/
    2. Run through the installer, not much else to do.

    Step 2 – Install wxWidgets

    1. Download wxWidgets (select the wxMSW installer file) from here:
      http://www.wxwidgets.org/downloads/
    2. I choose to install to c:\dev\wxwidgets\wxWidgets-2.8.10 but you can choose a different path if you want.

    Step 3 – Create an environment variable for the wxWidgets path.

    1. Click the Start icon.
    2. Right click on Computer and choose Properties.
    3. Click Advanced system settings.
    4. Click the Environment variables button.
    5. Under System Variables, click New.
    6. Enter the Variable name: WXWIN
    7. Enter the Variable Value: C:\Dev\wxWidgets-2.8.10
    8. Click OK, click OK, click OK (yes three times).

    Step 4 – Compile the wxWidgets Libraries.

    1. Browse to the following folder: C:\Dev\wxWidgets-2.8.10\build\msw
    2. Located the file called wx.dsw and open it with Visual Studio. (I just double-clicked on it.)
    3. Choose “Yes to all” when Visual Studio prompts you to convert the project.
    4. Build the project.
    5. Wait for the build to complete. It took approximately two minutes on my Lenovo T61p (dual core, 4 GB, Windows 7 64 bit). You should a line like this when it finishes successfully.
      ========== Build: 20 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
    6. Close Visual Studio.

    Step 5 – Create a new project

    1. In Visual Studio 2008, go to File | New Project.
    2. Select Visual C++ | Empty Project.
    3. Give the project a name and click OK. I named this wxTest.

    Step 6 – Create/Copy your source to this project.

    1. Right-click on the Project name and choose Open Folder in Windows Explorer. This will open to the home folder of your project. (Don’t right click the Solution name, make sure to right click the project under the solution name.)
    2. Open a second Windows Explore window.
    3. In the second window, browse to the wxWidgets sample directory and open the Minimal folder: C:\Dev\wxWidgets-2.8.10\samples\Minimal
      Note: You can choose other projects but you may want to start with Minimal and move on from there.
    4. Copy only the minimal.cpp and minimal.rc files to your project directory (the rest are not needed).
    5. Close the second window pointing to the C:\Dev\wxWidgets-2.8.10\samples\Minimal directory, it is not needed anymore.
    6. From the explorer window open to your project directory, use ctrl+click to highlight both the minimal.cpp and minimal.rc files.
    7. Drag both highlighted files into the Visual Studio Window and drop them over the project name.
      The minimal.cpp file should automatically be placed under the Source files section of your project.
      The minimal.rc file should automatically be placed under the Resource files section of your project.

    Step 7 – Customize the project properties

    1. Right-click on the wxTest project and select Properties. (Don’t right click the Solution name, make sure to right click the project under the solution name.)
    2. In the top left of the properties window there is a Configuration drop down menu. Select All Configurations.
    3. Click to expand Configuration Properties.
    4. Click to expand C/C++.

      Note: If you don’t see a C/C++ section, then you don’t have any source files.  You need at least one C++ source file for this section to show up.

    5. Click to highlight General.
    6. Enter the following in Additional Include Directories.
      $(WXWIN)\include;$(WXWIN)\lib\vc_lib\mswd
    7. Click to highlight Preprocessor.
    8. Enter the following in Preprocessor Definitions.
      WIN32;__WXMSW__;_WINDOWS;_DEBUG;__WXDEBUG__
    9. Click to expand Linker.
    10. Click to highlight General.
    11. Enter the following in Additional Library Directories.
      $(WXWIN)\lib\vc_lib
    12. Click to highlight Input.
    13. Enter the following in Additional Dependencies.
      wxmsw28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib winmm.lib comctl32.lib rpcrt4.lib wsock32.lib odbc32.lib

      Note: Not all of these libraries are required for this project, however, I list all of these because you may use some of them at some point. If you don’t think one is needed, remove it and recompile and if you don’t get errors, you were right, you probably didn’t need it.

    14. Click to expand Resources. (If you don’t see a Resources option, then you don’t have any files under resources so that is normal. Did you skip Step 5 because you probably should have added a resource in Step 5.)
    15. Click to highlight General.
    16. Enter the following in Preprocessor Definitions.
      _DEBUG;__WXMSW__;__WXDEBUG__;_WINDOWS;NOPCH
    17. Enter the following in Additional Include Directories.
      $(WXWIN)\include;$(WXWIN)\lib\vc_lib\mswd

    You are now ready to build your wxWidgets application using Visual Studio 2008 on Windows 7.

    Build your project and if you get any errors, go through it again, you probably missed a step (or I did, since I have already been caught with one step left out).

    posted on 2012-02-17 15:43 ivaneeo 閱讀(549) 評論(0)  編輯  收藏 所屬分類: C-自由的靈魂
    主站蜘蛛池模板: 免费a级黄色毛片| 久久久久久亚洲Av无码精品专口| 国产高清免费视频| 在线免费观看a级片| 亚洲精品无码久久久久AV麻豆| 亚洲成人激情在线| 亚洲精品第一综合99久久| 国产精品亚洲а∨无码播放麻豆| 国产成人综合久久精品亚洲| 老司机永久免费网站在线观看| 亚洲av丰满熟妇在线播放| 日韩免费视频一区二区| 免费爱爱的视频太爽了| 国产精品国产亚洲区艳妇糸列短篇 | 国产精品亚洲片在线观看不卡| 亚洲国产成人久久77| eeuss影院免费直达入口| 亚洲免费视频播放| 亚洲最大AV网站在线观看| 亚洲依依成人亚洲社区| 国产亚洲免费的视频看| 亚洲成?Ⅴ人在线观看无码| 亚洲一级毛片免费在线观看| 久久免费美女视频| 亚洲综合婷婷久久| 毛片a级三毛片免费播放| 亚洲人成在线电影| 免费日本一区二区| 亚洲国产日韩在线人成下载| 蜜桃精品免费久久久久影院| 野花视频在线官网免费1| 日韩毛片免费在线观看| 亚洲黄色激情视频| 免费在线看v网址| 亚洲国产成人资源在线软件| 在线免费观看色片| 国产一级a毛一级a看免费视频| 免费吃奶摸下激烈视频| a在线观看免费网址大全| 亚洲国产精品成人一区| 久久久精品免费视频|