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

How do I create a dialog box in mfc?

608


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

1878


how to repaint when working with horizontal scroll bar

1544


What does mfc stand for?

958


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

2843






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

1384


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

691


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

3341


I want recent paper pattern for HP company?

1784


What is mfc class hierarchy?

615


Do you have an idea about MFC?

912


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

1809


what is functioning of DIalodDataXchange ..?

1190


List out the basic features of MFC.

13679