--%>

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 : What is sticky bit Explain the sticky

    Explain the sticky bit?

  • Q : Explain State State : The objects are

    State: The objects are said to possess state. The present state of an object is symbolized by the joint values of its attributes. Protecting the state of an object from unsuitable inspection or modification is a significant aspect of class design and

  • Q : Function of TCHAR used in Windows

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

  • Q : Define Number of Threads Number of

    Number of Threads: Threads can be a useful abstraction and implementation mechanism to partition independent program actions. However, when there is coordination (or interference) between these threads, the required synchronization mechanisms increase

  • Q : Different layers in Windows Architecture

    Explain how many different layers comprise in Windows Architecture?

  • Q : What is an Instance variable Instance

    Instance variable: It is a non-static field of a class. Each and every individual object of a class has its own copy of this field. This is in contrary to a class variable that is shared by all instances of class. Instance variables are employed to mo

  • Q : Directory and filename Explain

    Explain directory and filename?

  • Q : What is an Exception handler Exception

    Exception handler: It is a try statement which acts as an exception handler - a place where exception objects are dealt and caught with.

  • Q : Define Fetch-execute cycle

    Fetch-execute cycle: The simple set of steps which are endlessly recurring by a computer's Central Processing Unit for each and every program instruction: `Fetch the next instruction suggested by the program counter,' `update the program counter to pa

  • Q : What is Priority level Priority level :

    Priority level: Each and every thread has a priority level that point out to the scheduler where it must be placed in the pecking order for being run. The eligible un-blocked thread with a specific priority will always be run prior to an eligible thre