When developing my own projects, I encountered the need for active and efficient type conversion of individual data types among themselves.

Type conversion must be used when adding applications - for example, accessing MS system registry registers, system repair, writing services, or other controls.


Over time I decided to write a module (library) for my projects, which I decided to publish as an auxiliary module for conversion in C++ .

In later articles I will show the use of these modules and write modules for access to registers, process management and the like.


What is conversion

A type conversion is the conversion of one data type to another.
For example, I can mention the need to convert from a data type string to date type integer for example from
"456" --> to number value 456 .

However, we need a conversion other than the character field and numeric data types when developing applications.

As a rule, we encounter data types such as : LPCWSTR, LPTSTR, LPVOID, WSTRING.


This article is not intended to describe tutorials or beginners' examples.
For a more detailed description of the conversion, see:: >>článok_tu<<



Convert.h
---------------------------------------------------------------------
Language: C++
IDE: Visual Studio IDE
Last revision : 19.10 2020 
Author: Diallix

---------------------------------------------------------------------


Convert.h je is a library supporting several types of type conversion:

 STRING -> LPCWSTR

 CONST STRING -> WSTRING

 LPTSTR -> STRING

 STRING -> WSTRING

 STRING -> LPVOID

 WSTRING -> STRING

 STRING -> INTEGER

 INTEGER -> STRING

 FLOAT -> STRING

 STRING -> FLOAT

 CHAR -> STRING

 CHAR -> INTEGER



Convert.h - Popis
---------------------------------------------------------------------
Typ Popisu: DoxyGen - html
Jazyk: Slovak
Posledná revízia: 19.10 2020 
Autor: Diallix

Vstup:
---------------------------------------------------------------------


 



Convert.h - Description
---------------------------------------------------------------------
Type of Description: DoxyGen - html
Language: English
Last revision: 19.10 2020
Author: Diallix

GoTo:
---------------------------------------------------------------------

For English DoxyGen documentation, thanks Miroslav Ježík.




 

Example of use

  In file main.cpp :