What is LPCTSTR? What does LP denote it?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have an idea about MFC?

916


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

3344


List out the basic features of MFC.

13693


plzz tell me what we can do and dont in tally ERP & sap business one?

1882


what is functioning of DIalodDataXchange ..?

1192






what message is sent to an application when the user presses the primary button?

1386


I want recent paper pattern for HP company?

1789


how to repaint when working with horizontal scroll bar

1549


What is the difference between Struts and JSF? Pls list some most suitable differences.

2845


What is mfc class hierarchy?

619


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

1811


How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

693


What does mfc stand for?

961


How do I create a dialog box in mfc?

611