Category Archives: C++

Article for Programmez – March 2019

In few days, the french programming Programmez will contain an article about using OpenCV4 in C++ to make facial detection and recognition. It’s amazing what this library can do. Don’t miss the issue of the magazine.

PageOne227

 

Advertisements

A word cloud from a C++ course program

It is interesting….

Popular words are Product (class), std::vector, std::string, #include, std::endl and std::cout.

wordle 2

I am a Technical Reviewer…

Review of APress Book “C++ Standard Library Quick Reference” from Peter Van Weert & Marc Gregoire is starting…. Chapter 3 “Containers” done…

review1

Article for Programmez for Feb 2019

In February 2019 issue of Programmez Magazine, you will find my article about Rootkit Command and Control software. Enjoy !

226

A simple Logging Library : MyLoggingLibrary

If have developed a simple logging library for console and file and multiple support of appenders. It’s called MyLoggingLibrary.

I have made it available to github: https://github.com/ChristophePichaud/MyLoggingLibrary

It was a sample for my students but it works and it’s simple to use. There is no configuration file.

// Client.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include "pch.h"

int main()
{
	CAppender appender1("log");
	appender1.SetLevel(Level::Debug);
	appender1.SetAppenderType(AppenderType::Console);

	// Appender 2 de type fichier
	CAppender appender2("log");
	appender2.SetLevel(Level::Info);
	appender2.SetAppenderType(AppenderType::File);

	// Objet de configuration
	CConfiguration config;
	config.AddAppender(appender1);
	config.AddAppender(appender2);

	// Get Logger(s) "log" & use => affichage en console et écriture en fichier
	std::unique_ptr<CLogger> logger = config.GetLogger("log", Level::Debug);
	for (int i = 0; i < 10; i++)
	{
		logger->Debug("Logging a Debug...");
		logger->Warning("Logging a Warning...");
		logger->Error("Logging an Error...");
		logger->Info("Logging an Info...");
	}
}

 

Article in Programmez for January 2019

My next article will be in french Magazine Programmez in January 2019. It will talks about rootkits and key logger.

225

Articles C++ en Serie…

OOP : http://bit.ly/2rhQFYl

Basic – Partie 1 : http://bit.ly/2FT92Nn

Les classes – Partie 2 : http://bit.ly/2FROSDK

Les Templates – Partie 3 : http://bit.ly/2zwZ4fd

STL – Partie 4 : http://bit.ly/2Sp6kAJ

Boost – Partie 5: http://bit.ly/2U7r4OX