您的位置:首页 > 其它

配置wxWidgets 2.8在vc6的使用

2016-11-04 12:00 204 查看
-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就是无法使用????

-后面简化了编译内容后,忽然可以了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  vc6 wxWidget