Category "C++"

on in C++ SQLite

Wonder how you can implement an automic transaction in SQLite so that your queries will either completely occurs, or completely fails to occur? In this tutorial, i will demonstrate how you can do that in your C++ code by modifying my previous C++ Sqlite example. My previous C++ Sqlite tutorials can be found at the......

[ Click to Continue ]
on in C++ PostgreSQL

There are times when you need to execute a series of SQL statements in order to achieve data consistency. For example, a customer is going to transfer his money from bank account to settle a bill payment. We will need to update both customer bank account and payee account accordingly. Failure to update either custormer......

[ Click to Continue ]
on in C++ G++ Linux PostgreSQL

In this tutorial, i’ll demonstrate an example on how to connect to PostgreSQL database using gcc in linux. Also, i’ll demonstrate some basic SQL execution in the C++ example so that it give better understading to you how all of these are working. If you are looking a tutorial for windows platform, you could visit......

[ Click to Continue ]
on in C++ G++ Linux SQLite Ubuntu

This example will demonstrate how you can write a C++ program to utilize SQLite as your program database file in Linux environment. I am using Ubuntu in this demonstration. If you are new to C++ & SQLite in Ubuntu, it is advisable that you read the following article so that you have better understanding what......

[ Click to Continue ]
on in C++ Cryptography MFC

This example will utilize the cryptography API on my previous post. If you are new to Microsoft cryptography API, you may refer to the following post, C++ Encryption and Decryption using Microsoft CryptoAPI, for more information on how to use the cryptography API. The objective of this example is to encrypt a string from edit......

[ Click to Continue ]
on in C++

Apart from calling the function based on its name, we could invoke a function through a function pointer which hold the function addresses. So, what makes function pointer interesting in C++? Well, there are reasons why it’s being utilized. For instance, you could invoke the export functions in a binary file by getting the address......

[ Click to Continue ]
on in C++ PostgreSQL

In this article, I’ll show you an example on how to integrate the PostgreSQL C++ library into your C++ project solution. The PostgreSQL version that i am using for this example is PostgreSQL for Windows version 8.4.4. In case you don’t have PostgreSQL installed on your machine, you can download it at postgresql-8.4.4-1-windows.exe. You may......

[ Click to Continue ]
on in C++ Windows

A function is extensible if it’s being defined as virtual in the base class. When a derived class inherits from a base class, that means both classes may refer to either derived class type or base class type. Under such circumstances, how are you going to tell the compiler which class type you are referring......

[ Click to Continue ]
on in C++ SQLite

This example will demonstrate how you could use the C/C++ interface to execute SQL statement in SQLite. If you are new to C/C++ & SQLite, it is advisable that you read my previous article on Establish a connection to SQLite database using C++, so that you have a better understanding what how and what to......

[ Click to Continue ]