background preloader

MFC

Facebook Twitter

Aprende a Programar en C# C# (pronunciado si sharp en inglés) es un lenguaje de programación orientado a objetos desarrollado y estandarizado por Microsoft como parte de su plataforma .NET, que después fue aprobado como un estándar por la ECMA (ECMA-334) e ISO (ISO/IEC 23270).

Aprende a Programar en C#

C# es uno de los lenguajes de programación diseñados para la infraestructura de lenguaje común.Su sintaxis básica deriva de C/C++ y utiliza el modelo de objetos de la plataforma .NET, similar al de Java, aunque incluye mejoras derivadas de otros lenguajes.El nombre C Sharp fue inspirado por la notación musical, donde ♯ (sostenido, en inglés sharp) indica que la nota (C es la nota do en inglés) es un semitono más alta, sugiriendo que C# es superior a C/C++. Además, el signo '#' viene de cuatro '+' pegados.1Aunque C# forma parte de la plataforma .NET, ésta es una API, mientras que C# es un lenguaje de programación independiente diseñado para generar programas sobre dicha plataforma. Link: link: link: link: link: What are TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR (etc.)? Many C++ Windows programmers get confused over what bizarre identifiers like TCHAR, LPCTSTR are.

What are TCHAR, WCHAR, LPSTR, LPWSTR, LPCTSTR (etc.)?

In this article, I would attempt by best to clear out the fog. In general, a character can be represented in 1 byte or 2 bytes. Let's say 1-byte character is ANSI character - all English characters are represented through this encoding. And let's say a 2-byte character is Unicode, which can represent ALL languages in the world. The Visual C++ compiler supports char and wchar_t as native data-types for ANSI and Unicode characters, respectively. There is more to Unicode than 2-bytes character representation Windows uses.

What if you want your C/C++ code to be independent of character encoding/mode used? Suggestion: Use generic data-types and names to represent characters and string. For example, instead of replacing: char cResponse; char sUsername[64]; with wchar_t cResponse; wchar_t sUsername[64]; #include<TCHAR.H> // Implicit or explicit include TCHAR cResponse; TCHAR sUsername[64]; Or, as: Alright. An Idiot's Guide to C++ Templates - Part 1. Prolusion Most C++ programmers stay away from C++ templates due to their perplexed nature.

An Idiot's Guide to C++ Templates - Part 1

The excuses against templates: Hard to learn and adapt. Compiler errors are vague, and very long. Not worth the effort. Admitted that templates are slightly hard to learn, understand, and adapt. While C++ templates and STL (Standard Template Library) are siblings, technically. Table of Contents The Syntax Drama As you probably know, template largely uses the angle brackets: The less than ( < ) and the greater than ( > ) operators. Where Content can be: class T / typename T A data type, which maps to T An integral specification An integral constant/pointer/reference which maps to specification mentioned above. For point 1 and 2, the symbol T is nothing but some data-type, which can be any data-type - a basic datatype (int, double etc), or a UDT.

Let's jump to an example. Which can be called passing an int: PrintTwice(120); Templates are of two types: Function Templates Class Templates No, my boy! Microsoft Visual C++/MFC Tutorial - FunctionX.