Function of TCHAR used in Windows Programming

Write down a program to show the function of TCHAR used in Windows Programming?

E

Expert

Verified

a. TCHAR is the data type which is used in Unicode for the generic character data type.

b. It is used to hold the 1-byte ASCII characters which are standard format for the characters.

c. It also uses 2-byte Unicode character to use the macro and the data type which have a similar manner on all the platforms.

d. Program are as follows-

#ifdef UNICODE
#define TCHAR WORD
#else
#define TCHAR BYTE
#endif

   Related Questions in Programming Languages

  • Q : Differences between primary storage and

    What are the differences between primary storage and secondary storage?

  • Q : Use Finite-State Space Abstractions Use

    Use Finite-State Space Abstractions: In order to successfully apply explicit-state model checking, defects must be detectable in a sufficiently small state space. This can be achieved either by means of heuristics that constrain the way the state spac

  • Q : What is First in-first out First in,

    First in, first out: It is FIFO semantics of the queue data structure. Items are eliminated in the order in which they arrived in the queue; therefore older items are always eliminated before newer ones.

  • Q : Use of private Q. Explain the use of

    Q. Explain the use of private, public, protected access specifies.  

  • Q : What is an Unchecked exception

    Unchecked exception: An exception for which it is not needed to give a local try statement or to propagate through a throws clause stated in the method header. An exception which is not handled will cause program annihilation when it is thrown.

  • Q : What is Concurrency Concurrency : This

    Concurrency: This is a feature of parallel programming. The parts of a program whose executions overlap in time are stated to execute concurrently. Java's thread characteristic support concurrency.

  • Q : Phenomenon of page fault Explain the

    Explain the phenomenon of page fault?

  • Q : What are the uses of GPC and GPT What

    What are the uses of GPC and GPT?

  • Q : Explain functionality or an API needs

    The application I am creating needs having access to functionality or an API that use needs the Nokia Vendor ID. For my application how can I have this Nokia VID?

  • Q : Simple Sorting Program in C Shell

    Assignment: Sorting You will write a simple sorting program. This program should be invoked as follows: shell% ./fastsort -i inputfile -o outputfile

©TutorsGlobe All rights reserved 2022-2023.