使用wxWidgets开发应用程序时的VC++配置
来源:互联网 发布:淘宝羽绒服女款 编辑:程序博客网 时间:2024/04/30 02:09
From: http://www.wxwidgets.org/docs/technote/vc_ide.htm
To compile wxWidgets samples and applications using the VC++ 5.0 or 6.0 IDE (having compiled wxWidgets using the makefile or project file provided), the following steps and settings should be used.
Steps
- Create a new WIN32 Application project.
- Add the .cpp and .rc files for your project.
- Apply the settings listed below to the project, replacing c:/wx2 with your wxWidgets installation path.
Settings for wxWidgets 2
These settings apply to wxWidgets 2.3.0 and above.
You can set them explicitly as follows, or you can create a project by copying a sample, e.g. minimal. However, if you copy it out of the wxWidgets installation tree then you will have to replace all "../.." and "../.." in the .dsp project file with the path to the installation, or $(WXWIN).
- General
- The Output files and Intermediate files directory fields should be Debug for the Debug configuration, and Release for the Release configuration.
- Debug: General
- The Executable for debug sessions field should be altered to be the path and name you'd expect (it may have generated a different name).
- C/C++: Preprocessor
- The Preprocessor definitions field should contain the following symbols for Debug:
WIN32,_DEBUG,_WINDOWS,__WINDOWS__,__WXMSW__,__WXDEBUG__,WXDEBUG=1,__WIN95__,__WIN32__,WINVER=0x0400,STRICT
and these for Release:
NDEBUG,WIN32,_WINDOWS,__WINDOWS__,__WXMSW__,__WIN95__,__WIN32__,WINVER=0x0400,STRICT
The Additional include directories field should contain the following:
c:/wx2/include,c:/wx2/contrib/include,c:/wx2/lib/msw[d]
(and of couse any other directories you wish to use in your project). You could use $(WXWIN) instead of c:/wx2 above.
- C/C++: Precompiled Headers
- The Not using precompiled headers or Automatic use of precompiled headers button should be selected.
- C/C++: Code Generation
- The Use run-time library control should be set to Debug Multithreaded DLL (Debug) or Multithreaded DLL (Release).
- Link: Input
- The Object/library modules field should contain:
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.libadvapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.libodbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.libpngd.lib zlibd.lib jpegd.lib tiffd.lib
for the static Debug configuration and
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.libshell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.libcomctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.libjpeg.lib tiff.lib
for the static Release configuration.
The Ignore libraries field should contain:
libcd.lib,libcid.lib,msvcrt.lib
for the Debug configuration and
libc.lib,libci.lib,msvcrtd.lib
for the Release configuration.
The Additional library path field should contain:
c:/wx2/lib,c:/wx2/contrib/lib
for both Debug and Release configurations.
- Resources
- Select your .rc file and the Resources tab. The Additional resource include directories field should contain:
c:/wx2/include;c:/wx2/contrib/include
- 使用wxWidgets开发应用程序时的VC++配置
- 如何使用VC开发wxWidgets程序?
- Windows下使用codeblocks+wxWidgets开发的配置方法
- VC++6.0下wxWidgets工具的配置
- 用wxWidgets开发应用程序
- 在Windows平台上使用Codeblocks开发基于wxWidgets框架应用程序的开发环境准备
- VC++2010 使用wxWidgets的环境设置
- wxWidgets-2.6.1编译和在VC中的配置,及使用后的一点感想
- 配置 Python的wxWidgets可视开发环境
- 配置wxWidgets 2.8在vc6的使用
- 使用wxWidgets开发的一点心得
- vc++6.0下wxWidgets程序开发环境的设置
- 配置wxWidgets时碰到的link error
- wXWidgets学习笔记之一:wXWidgets的配置
- VS + wxWidgets开发配置指南
- Ubuntu配置wxWidgets跨平台C++开发环境的方法
- wxWidgets编译和在VC中的配置
- wxWidgets编译和在VC中的配置
- Big Endian与Little Endian区别
- 20. 二级缓存(SessionFactory级缓存)
- TCP Server《——》TCP Client
- 多桌面切换
- 分页存储过程
- 使用wxWidgets开发应用程序时的VC++配置
- 分析碰撞检测库Opcode
- 一种3D游戏碰撞检测解决方案
- 开普勒三定律
- 取得真经100年之后的唐僧--值得沉思
- Oracle 存储过程
- 2010 风雨年 --- 努力 坚持 坚信风雨无阻
- 自己动手启动计算机
- Oracle Data Integrator Agent – What you need to know