wxwidgets怎么用啊

lp08011095 2010-01-08 09:07:23
今天书上看书讲到wxwindows工具包,我去下了,现在好像更名为wxwidgets,我下的是wxMSW-2.9.0-Setup.exe,安装了,可是怎用呢???我的IDE是vs2008速成版....


我是小菜菜,哪位大侠教我怎么用啊.0...请说的详细点,最好一个一个步骤讲,就教我创建一个空白的窗口吧

小弟不甚感激啊...谢谢啊
...全文
583 16 打赏 收藏 转发到动态 举报
写回复
用AI写文章
16 条回复
切换为时间正序
请发表友善的回复…
发表回复
tiannana 2011-04-08
  • 打赏
  • 举报
回复
我用VS2010都编译了至少三次了, 只是选的是DEBUG版本, RELEASE版本出错不断
stoneyrh 2011-02-10
  • 打赏
  • 举报
回复
wxWidgets自带有很多的samples,为什么不先看看呢
taodm 2011-02-05
  • 打赏
  • 举报
回复
楼主如果不想自己编译,就去下载wxdevcpp。
另外,VC2008express,编译了wx貌似也没有所见即所得的做界面功能。
iambic 2011-02-05
  • 打赏
  • 举报
回复
建议你自己google下。wxWidgets的入门文章,包括怎么安装编译,网上有无数篇。我自己就写过几篇,不过好多年前了,早就跟不上时代。
匚匚 2011-02-05
  • 打赏
  • 举报
回复
帮顶,因为我也想知道
davelv 2010-01-09
  • 打赏
  • 举报
回复
windows 下的wsWidgets是源代码文件,需要自己编译才可以.
步骤如下:
http://www.oulan.com/com/2008/03/windowswxwidgetsmingwcodeblocks.html
yuanlin2008 2010-01-09
  • 打赏
  • 举报
回复
推荐你一本书
Cross-Platform GUI Programming
with wxWidgets
必看
lp08011095 2010-01-09
  • 打赏
  • 举报
回复
再顶顶
pywepe 2010-01-08
  • 打赏
  • 举报
回复
我用qt
ropert911 2010-01-08
  • 打赏
  • 举报
回复
我也不会
anuosix 2010-01-08
  • 打赏
  • 举报
回复
qt干吗不用啊
lp08011095 2010-01-08
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 traceless 的回复:]
我是按照上面来的,成功

但我可不会wxwindows啊
[/Quote]


这难度也太大了,全英文啊
traceless 2010-01-08
  • 打赏
  • 举报
回复
我是按照上面来的,成功

但我可不会wxwindows啊
traceless 2010-01-08
  • 打赏
  • 举报
回复
---------------------------
MSVC++ STEP 1: Download wxWidgets
---------------------------

To simplify the implementation of a near-identical user
interface across platforms, Audacity uses classes and
resources from wxWidgets, a portable GUI framework for C++
(and Python). You must download and build wxWidgets before
attempting to compile Audacity, or nothing will work!

wxWidgets is available at "http://www.wxwidgets.org/".

Audacity 1.3.8 requires wxWidgets 2.8.10.

To build on Windows only, download the wxMSW package
(installer or zip).

------------------------
MSVC++ STEP 2: Build wxWidgets
------------------------

When you have downloaded and installed wxWidgets, you must
build it.

For wxWidgets' instructions on compilation
(and details about static versus dll linkage), see
"C:\wxWidgets-2.8.10\docs\msw\install.txt".
Note therein that wx_dll.dsw adds the dependencies to
force the correct build order for DLLs, which wx.dsw
does not. Because of this, wx_dll.dsw doesn't work for
static libraries.


1. Open "C:\wxWidgets-2.8.10\build\msw\wx_dll.dsw" with
Visual Studio 2008 (for VC9).
Make sure to use wx_dll.dsw, not wx.dsw, because wx.dsw
does not have the correct dependencies for the DLL builds.
When you open wx_dll.dsw, Visual Studio will prompt whether
to convert. Click "Yes To All". Next time you open a Visual
Studio session, you can avoid this prompt by opening
"C\wxWidgets-2.8.10\build\msw\wx_dll.sln" instead of wx_dll.dsw.


2. If you want to use the accessibility features, we have modified a
couple of the wxWidgets files. Rather than provide a patch, we
store the modified files in CVS, and you can replace the
corresponding wxWidgets files.
In "audacity\win\wxWidgets_additions" are one .cpp and one .h file.
You may want to make backups of the wxWidgets originals of these,
in case you also build without these accessibility features.

* Copy access.cpp to "C:\wxWidgets-2.8.10\src\msw\ole\".

* Copy setup.h to "C:\wxWidgets-2.8.10\include\wx\msw\".

Audacity releases are built with these accessibility features.


3. Build wxWidgets for all configurations of Audacity that you want.
* Build "DLL Release" to use in a "Release" version of Audacity.
* Build "DLL Unicode Release" to use in a "Unicode Release"
version of Audacity.
* Build "DLL Debug" to use in a "Debug" version of Audacity.
* Build "DLL Unicode Debug" to use in a "Unicode Debug"
version of Audacity.

See "MSVC++ STEP 5: Build Audacity" for the differences
between these versions of Audacity.

If you use "Batch Build" under the "Build" menu, you need select
only the following five projects to build (not the whole solution)
for each configuration:
* adv
* base
* core
* html
* net

Because of dependencies, this should also build these projects:
* wxexpat
* wxjpeg
* wxpng
* wxregex
* wxtiff
* wxzlib

If you build the whole solution, ignore the linker errors for
wxbase28*_odbc*.* dbgrid.


4. Note the directory "C\wxWidgets-2.8.10\lib\vc_dll". For each
build of WxWidgets you made, you will need from here five DLLs
appropriate to that build to go in the corresponding Audacity
build directory. The DLLs required are noted at "Provide access
to the wxWidgets DLLs" at "MSVC++ STEP 5: Build Audacity" below.


--------------------------
MSVC++ STEP 3: Download Audacity
--------------------------

Now you can compile Audacity. To check out the latest
source code from CVS, see the instructions at
"http://audacity.sourceforge.net/community/developers".


--------------------------------------------
MSVC++ STEP 4: Set wxWidgets location for Audacity
--------------------------------------------

Before you can start the build process, you must update the
project settings to tell Visual C++ where to find wxWidgets.
There are three settings that need changing:
1. Include Directory (e.g., "C:\wxWidgets-2.8.10\include")
2. Resource Directory (e.g., "C:\wxWidgets-2.8.10\include")
3. Library Directory (e.g., "C:\wxWidgets-2.8.10\lib")

Fortunately, this is parameterized, using a Windows system
environment variable. There are various ways to set these, so
look in the Windows help system. You want to create an
environment variable WXWIN, set to the top-level directory
where you installed wxWidgets. For example,
in your "autoexec.bat" file, you might have a line:

set WXWIN=C:\wxWidgets-2.8.10

Note that you don't want a trailing backslash on that.

On newer version of Windows, the settings for environment
variables can be found in the system control panel. Click
the "System" option, then the "Extended" or "Advanced" tab,
then "Environment variables".

In the Audacity project file, there are declarations like

$(WXWIN)\include

that get interpreted as, e.g., "C:\wxWidgets-2.8.10\include".

Once you have set the WXWIN environment variable correctly,
the Audacity project file's declarations will do the rest.

Note that you have to restart the IDE so it picks up changes
in the environment variables.
healer_kx 2010-01-08
  • 打赏
  • 举报
回复
据说会MFC了,基本就会wxWidgets了。。。 。。。

装个老邓版的Code::Blocks吧,里面自带wxWidgets的向导。
看看附近的帖子。

24,855

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 工具平台和程序库
社区管理员
  • 工具平台和程序库社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧