配置wxWidgets 2.8在vc6的使用

本文介绍了如何在VC6中配置并使用wxWidgets 2.8,包括编译配置和使用过程。在编译配置部分,涉及到添加包含目录和库路径,设置预处理器定义。在使用部分,创建Win32空工程,添加代码文件,并调整编译选项,如运行时库的选择。最后,解决了Debug配置下遇到的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

-debug
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw28d_core.lib wxpngd.lib wxzlibd.lib wxjpegd.lib wxtiffd.lib

-release
kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw28_core.lib wxpng.lib wxzlib.lib wxjpeg.lib wxtiff.lib
----------------------------------------
配置wxWidgets 2.8在vc6的使用
1).编译配置部分====
1.下载wxWidgets 2.8 forMsVC的,解压
2.用vc6打开build\msw\wx.dsw,进行编译,应该没有什么问题,就是慢。
3.配置tools中的include包含目录include和include\msvc,lib包含目录lib\vc_lib
4.
2).使用部分====
1.建立win32空工程
2.增加代码文件,可以用例子hworld.cpp内容
3.配置工程:
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

(xxxx已经在project中设置了)The Additional include directories field should contain the following:

c:\wx2\include,c:\wx2\contrib\include,c:\wx2\lib\msw[d]
(xxxx)


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.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmswd.lib
pngd.lib zlibd.lib jpegd.lib tiffd.lib
for the static Debug configuration and

kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib
shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib
comctl32.lib rpcrt4.lib wsock32.lib winmm.lib wxmsw.lib png.lib zlib.lib
jpeg.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.

xxxxxxxxxxxxxxxxx
release没有问题了
debug就是无法使用????
-后面简化了编译内容后,忽然可以了。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值