BCS wxWidgets Modal Dialog

To create a wxWidgets modal dialog some source code must be added to your existing wxWidget application. The next section of code will establish the class and the reference to the modal dialog. The final section of code shows how to invoke the modal dialog. Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored […]

BCS Return MySQL Auto Inc Value

There are those times when you need to retrieve the highest used auto increment value for a table. The following c++ snippet offers solution. To invoke the function use the following calling sequence. This section of code will retrieve the highest value for auto increment of any table in MySQL. To keep this example precise […]

BCS Boost List Of File Specifications

Boost handles retrieving file specifications. Our routine allows for the fully qualified file specification or just the filename and extension.  We begin by telling c++ we are using boost. [codesyntax lang=”cpp”] #include <boost/filesystem.hpp> using namespace boost::filesystem; [/codesyntax] The actual Boost snippet is as follows. [codesyntax lang=”cpp”] void retFiles(path p, bool fqp) { for (auto i […]

BCS c++ Return Web Page Title

Occasionally requirements exists to return the title of a web page. This utility completes the assigned task by employing Curl, Boost a couple of custom engineered routines. [codesyntax lang=”cpp”] string getZTitle(string url) { string retVal; curl_global_init (CURL_GLOBAL_ALL); int ii; /* * We use Curl to fetch the web page per the URL. * * A […]

BCS wxWidgets And Eclipse

Enabling Eclipse to compile and execute a wxWidgets applications is a non trivial task. These recommendations offer remedy to the situation. The g++ command line should be modified as follows. [codesyntax lang=”text”] g++ `/usr/local/bin/wx-config –cflags` -std=c++11 [/codesyntax] Of course if you wx-config script is in a different location you should make you entry reflect that […]

BCS wxWidgets Package Build And Install

Of all available c++ GUI’s wxWidgets is the standard for Brooks Computing Systems GUI’s. The provided packages were incompatible with the level of c++ I currently use so all the libraries in question had to be recompiled.  Below is a list of the possible configuration options. [codesyntax lang=”bash”] `configure’ configures wxWidgets 3.0.4 to adapt to […]

BCS Prepare gtkmm Examples

There are many examples with gtkmm (c++). A framework was developed to facilitate making those examples fully functional in minuets instead of hours. Step 1 Generate the Eclipse Project. Step 2 Generate the examplewindow class and header. Step 3 Paste the examplewindow.h. Step 4 Paste the examplewindow.cpp. Step 5 Un comment three lines in MainWin […]