wxWidgets is a cross-platform GUI library, that is also available for Windows. You can get started with using wxWidgets in a few steps:
- Download and install the Windows installer for the current stable release of wxWidgets from its download page. It installs the source and build files in
C:. For example, in
wxWidgets needs to be built before it can be used with your application. Go to
C:\wxWidgets-3.0.0\build\mswand open the
.slnfile that matches the Visual Studio version you intend to use for your application. For example, I open
wx_vc10.slnusing Visual Studio 2010.
Choose one of the build types:
DLL Releaseand build the solution. The resulting
.libfiles are placed in
Create a new Visual Studio solution for your C++ application. Remember that it has to be
Win32 Project, not a
Win32 Console Project. The difference is that the
mainfunction is defined inside wxWidgets and does not need to be defined in your application code.
.cppfile to your solution and copy the Hello World code into it.
C:\wxWidgets-3.0.0\include\msvcas additional include directories to the solution.
C:\wxWidgets-3.0.0\lib\vc_libas additional library directory to the solution.
Build the solution and run it to see an empty wxWidgets window.
Tried with: wxWidgets 3.0.0, Visual Studio 2012 and Windows 7 x64