<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-自由的靈魂
    主站蜘蛛池模板: 亚洲AV无码一区东京热| 亚洲免费中文字幕| 亚洲日韩激情无码一区| 亚洲男同帅GAY片在线观看| 久久丫精品国产亚洲av不卡| 亚洲一卡二卡三卡四卡无卡麻豆| 色偷偷噜噜噜亚洲男人| 91视频免费网站| 毛片在线看免费版| 亚洲高清偷拍一区二区三区| 亚洲成av人片天堂网| 亚洲中文字幕无码久久2020 | 免费人妻无码不卡中文字幕18禁| 久久久久亚洲精品无码网址| 亚洲欧洲日产专区| 在线播放国产不卡免费视频| 久久WWW免费人成一看片| 国产成人精品男人免费| 亚洲天堂一区二区| 日本一区二区三区免费高清在线| 99久久久国产精品免费牛牛 | 50岁老女人的毛片免费观看| 啊灬啊灬别停啊灬用力啊免费看| 久久亚洲一区二区| 国产亚洲精品美女2020久久| 84pao强力永久免费高清| 亚洲精品老司机在线观看| 亚洲乱码中文字幕小综合| 香蕉免费一级视频在线观看| 妞干网在线免费观看| 亚洲福利在线视频| 日韩在线观看免费完整版视频| 黄色成人免费网站| 久久精品国产亚洲香蕉| 黄色毛片视频免费| 最近中文字幕mv手机免费高清 | 久久午夜免费视频| 亚洲成av人在线视| 一个人看www免费高清字幕| 免费毛片在线看片免费丝瓜视频| 久久精品国产亚洲夜色AV网站 |