What is LPCTSTR? What does LP denote it?

Answers were Sorted based on User's Feedback



What is LPCTSTR? What does LP denote it? ..

Answer / venkatesh

LPCTSTR denotes "Long Pointer Const to String". Declaration
can be written as const long* str[];LP denotes Long Pointer.

Is This Answer Correct ?    11 Yes 2 No

What is LPCTSTR? What does LP denote it? ..

Answer / you

Long Pointer

Is This Answer Correct ?    10 Yes 3 No

What is LPCTSTR? What does LP denote it? ..

Answer / abhishek jain

LPCTSTR is a "Long Pointer Const to String".
LPCTSTR is a string conversion macro and used a ATL and MFC.
using W2A we can change a LPWSTR to LPCTSTR.
In old version we need to use a USES_CONVERSION method..

Is This Answer Correct ?    4 Yes 0 No

What is LPCTSTR? What does LP denote it? ..

Answer / r. seshadri

LPCTSTR is the vestige of 16-bit programming days, when any
Windows programmer is considered to be a wizard who would
look down other programmers "cursed to live in DOS-dom". He
or she had to grapple with near and far pointers that
stemmed from the segmentation memory model used by i286 and
earlier chips. So, it made sense to talk about long
pointers and pointers that are not that long (they could
not jump beyond 65536 address locations).
With the advent of i386 and compilers that supported the 32-
bit architecture, long pointer is only a passe'. We can now
use "const char *" to address anything in available memory.
LPCTSTR is still retained so that your 16-bit programs
don't get banished by your modern systems.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More MFC Interview Questions

What is the difference between regular dlls and extended dlls?

2 Answers  


What is the difference between the ASSERT and VERIFY macros?

4 Answers  


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


What is the use of message map ?

5 Answers   TCS,


What function is used to retrieve the currently selected index in a list box?

2 Answers  






What are the types of button controls?

10 Answers  


General purpose classes in MFC

1 Answers   TCS,


Can you explaing the relashionship between document,frame and view ?

2 Answers  


1.Get string1,string2,string3 1.add string1 and 2,string1 and 3. 2.replace vowels with T 3.count number of T. 4.remove T 5.COPY string1 to stringf. 6.restore string1. print the following 1.Number of T 2.StringF 3.string1+string2+string3 Use pointers and functions

1 Answers  


How to convert the content of buffer into lower case character.

3 Answers   E Logic,


how to repaint when working with horizontal scroll bar

0 Answers  


If there is more than 100 control in a window how we can change the Taborder of a controls

4 Answers   Satyam,


Categories