How To Use Wxwidgets In Dev C%2b%2b

How To Use Wxwidgets In Dev C%2b%2b Average ratng: 4,8/5 9202 votes

Home > Articles > Programming > User Interface (UI)

  1. Introducing wxWidgets

Uff, long time since I worked with Dev-C, but basically you need to tell your compiler where to find the wxWidgets library. It should be somewhere around Compiler Options - Include Directories or the likes. Around 1999 Colin Laplace released the first version of Dev-C. Using the MinGW compiler, it provided a minimal IDE. As other developers joined in, they helped expand Dev-C into an IDE which now resembles Microsoft’s Visual Studio. 2003 Guru Kathiresan created a stand alone visual form designer in Delphi. Dev-C is a nice Free IDE for Windows that works quite well with wxWidgets. See their website here There is a binary package available in devpak (Dev-Cpp package format) available here, don't get the version from vUpdate (it is old). You need to install the newest (beta) version of devc, but generally, it's worth it. Since I don't know anything about wxWidgets I can only guess but maybe you missed to include some necessary files or the wxWidget stuff is located in an own namespace (if wxWidget is C and not plain C) so you have to use::wxPuts(.) or using; in your main.cpp. – mmmmmmmm Sep 7 '09 at 5:35.

Page 1 of 7Next >

WxMidi is a C wrapper for wxWidgets around the PortMidi library. With this component, software developers using the wxWidgets application development framework can add MIDI in/out support to any wxWidgets application.

The open source wxWidgets library makes programming GUIs incredibly easy, far easier than with most platform APIs. Jeff Cogswell shows how this handy C++ library can shorten your programming time with powerful classes that are simple to use.
Like this article? We recommend
Cross-Platform GUI Programming with wxWidgets

Like this article? We recommend

Like this article? We recommend

When I set out to develop a program in C++, one of the hardest parts is figuring out what tools I’ll use to create the user interface. Since the language standard itself doesn’t provide any GUI classes, it’s up to the development tools to help me out here. I have lots of choices at my disposal; I can write code that calls into the Windows API (no, thank you—I did more than my share of that 10 years ago); or I can make use of a class library. Further, I can use a development tool that allows me to draw my windows graphically, or I can code them myself.

After years of creating programs on windowing systems such as Microsoft Windows and the Macintosh, I’ve come to realize that tools that let me draw a window onscreen barely help. The timesaving is minimal. Plus, the tool itself usually injects various codes into my source, and I’m not supposed to touch the codes. Or such tools maintain a separate file describing the GUI, and I’m not supposed to touch that separate file. Thus, as much as I enjoy using other languages such as C# and Visual Basic .NET, I find the designer portions of little value; I use the designers for some basic stuff, but the rest is all coding.

What’s more important to me is a good, strong class library. That’s where a library such as wxWidgets comes in.

Introducing wxWidgets

In a nutshell, wxWidgets is a library of C++ classes that do the following:

  • Simplify creating a GUI for your application
  • Provide more than just GUI classes (they include container classes, socket classes, and several other categories)
  • Allow for cross-platform development, whereby you can recompile your source for other platforms

Acer aspire bios key generator. And best of all, wxWidgets is free! It’s an open source tool and free for us to use, and it works on many different platforms, including Windows, Mac OS X, GTK+, X11, Motif, and even Windows CE and Palm OS.

Before getting into the nitty-gritty, I want to show you the categories of classes the library provides, so you can see how broad and useful it is:

  • Windowing (managed and miscellaneous)
  • Window layout (particularly important for cross-platform development)
  • Controls and menus
  • Common dialogs
  • Device contexts
  • Graphics
  • Events
  • Validation
  • Data structures (arrays, maps, points, rectangles, strings, and others)
  • Runtime type information
  • Logging and debugging
  • Networking (including sockets and various protocols such as HTTP and FTP)
  • Interprocess communications and threading
  • Document/View framework (if you want to use it)
  • Printing (always a headache in Microsoft Windows), which even includes print preview
  • Drag-and-drop
  • Files and streams (including various stream classes that are as easy to use as the ones Java programmers were blessed with years ago)
  • HTML
  • Virtual file system
  • XML
  • Online help (for the software you’re developing)
  • Databases
  • Miscellaneous, including such classes as wxCmdLineParser, wxSystemOptions, wxSingleInstanceChecker, and wxGLCanvas (for OpenGL) and more

Now, certainly, I won’t be able to cover all these categories in this single article, considering that each has multiple classes—many have two or three dozen classes. But I can show you some of the highlights. First, however, I want to talk about my experiences with installing the library.

Related Resources

  • eBook (Watermarked) $28.79

How To Use Wxwidgets In Dev C 2b 2b 1

  • Book $35.99

How To Use Wxwidgets In Dev C 2b 2b 1b

  • Book $39.99