<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 閱讀(543) 評論(0)  編輯  收藏 所屬分類: C-自由的靈魂
    主站蜘蛛池模板: 黄页网址大全免费观看12网站| 1区1区3区4区产品亚洲| 亚洲AV女人18毛片水真多| 免费专区丝袜脚调教视频| 亚洲伊人久久大香线蕉苏妲己| 青柠影视在线观看免费高清 | 亚洲日韩国产AV无码无码精品| 美女被cao免费看在线看网站| 亚洲日本在线播放| 黄色片在线免费观看| 亚洲一线产品二线产品| 国产成人免费网站在线观看| 午夜亚洲国产精品福利| 亚洲天堂免费在线视频| 好男人资源在线WWW免费| 亚洲第一AV网站| 蜜桃AV无码免费看永久| 久久精品国产亚洲av麻豆图片| 成年在线网站免费观看无广告| 国产亚洲欧美在线观看| 在线观看国产区亚洲一区成人 | 最近中文字幕无吗免费高清| 亚洲精品国产第一综合99久久| 又大又硬又爽免费视频| 中国一级特黄的片子免费| 久久亚洲AV成人无码软件| 成人毛片18女人毛片免费视频未 | 免费的涩涩视频在线播放| 免费的黄色的网站| 亚洲不卡中文字幕无码| 精品久久久久久久久免费影院| 欧美亚洲国产SUV| 人人狠狠综合久久亚洲88| 国产人在线成免费视频| 免费观看又污又黄在线观看| 久久精品夜色国产亚洲av| 操美女视频免费网站| 两性色午夜免费视频| 亚洲一区免费在线观看| 国产亚洲老熟女视频| 成人免费一级毛片在线播放视频|