Skip to main content

Posts

How to Set Up Code::Blocks to Compile and Build C/C++ Programs in Windows

Code::Blocks is a useful IDE that can include compilers for C and C++. In order to use Code::Blocks for C/C++, there are two things to install and one to configure:
1. Download and install the gcc compiler by installing MinGW as described in this article 
2. Download and install Code::Blocks from this site. A link to nightly builds is provided in case you want to try a very recent build but read the documentation first. Some versions come with the MinGW compiler and some do not. In this article, we assume you downloaded the version without MinGW.
3. Configure the compiler and build tools in Code::Block

How to Configure Code::BlocksWhen you install Code::Blocks, it tries to detect the compiler. There is a long list of compilers it can use but our interest is MinGW and Cygwin because they are the most reliable, updated open source C/C++ compilers for Windows. For Linux, gcc is a core part of the OS and is installed by default.

To configure Code::Blocks for MinGW proceed as follows:
1. Launch…
Recent posts

Compiling and Building C/C++ Programs in Windows with MinGW Compiler

The most popular open source C/C++ compilers for Windows are MinGW and Cygwin. MinGW is much less tedious to install hence I will start with this. Cygwin? Let's do that another day...

Process of Installing MinGW
1. Locate the MinGW installer (let's assume 64bit)
2. Download
3. Run installer (assume on C:/MinGW folder
4. Configure PATH
5. Test

How to Compiler and Build  a C/C++ Program1. Write the source and save in desired folder (e.g. Hello.c)
2. Change directory to the one containing the source file
3. Run the Command Prompt, Power Shell or other shell such as Git BASH in this folder. [Shift+Right-Click will bring up a popup to allow the first two shells. Right-Click will allow you to run the Git BASH. See details below).
4. Issue the compiler command: gcc -o hello.exe hello.c  which means: Compile source file called Hello.c and name the output file Hello.exe
5. Run the output file as follows: ./Hello 

Locate MinGW Installer Google "mingw64" to locate the 64-bit version (32-bi…

How to Install Visual Basic 2017 Offline

This page offers a way to avoid the long and error-prone online installation of Visual Studio which is a massive package. Our interest is limited to Visual Basic and ASP.Net. One can, later, add other tools such as C# and C++. In this page, "VS" refers to Visual Studio.

Installing Visual Basic 2017 Offline is not a simple process because Visual Basic 2017 is a part of Visual Studio 2017 that comes as one huge package (up to 35GB) in three versions:
Community Edition (Free)Professional Edition (intended for a few people)Enterprise (intended for larger software teams) Visual Studio by default uses a web-based install process that starts by downloading one of three the bootstrapper package from the VS download page.

When you run the bootstraper, it will initiate download of the Visual Studio components that may be up to 35GB in size and takes a very long time to complete. The purpose of this page is to explain how to avoid the headache of this long and tedious process that can ea…

Definition of ICT

It seems that ICT is not satisfactorily defined out there hence, I offer a definition:

Information and Communication Technology (ICT) is a confluence of  information technologies such as software and electronics devices as well as communication technologies that include all manner of computer and telecommunication networks that enable the acquisition,  access, retrieval, storage, analysis, transmittal, and manipulation of information in analogue or digital form. - J M Githeko, 23-8-2017

VB in 2017

Visual Basic has been around a long time. The Basic language was developed starting 1964 by  John G. Kemeny of Dartmouth College in New Hampshire, United States.  Microsoft started developing Visual Basic in 1990. VB 1.0 was released in 1991. The life of the original VB ended in 2008 when Microsoft stopped supporting VB 6.0

In 2002, When DOT NET came along, VB.Net was launched as part of Visual Studio .Net, the new IDE that was fully Object Oriented. As time went on a number of versions of the .Net framework developed including the Windows-only, Windows Store, WinRT(?), Mono and MonoTouch. Now 15 years later, Microsoft has moved to create a unified DOT NET framework that tries to merge all the different DOT NET frameworks into one framework called Dot  Net Core. Due to the usual pressure for backward compatibility, MS has promised that VB will continue to live and that DOT NET Core will accommodate the older versions. However, its clear that  MS wants to change tack. 

For example, DOT N…