What is LPCTSTR? What does LP denote it?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
how u can move CDC pointer to one line in cview?
What is Thread ?(VC++)What is the difference between Cmutex and Csemaphone?
what message is sent to an application when the user presses the primary button?
What is the initial function to be called in MFC and what it will do
Difference between Cclint DC & Cpaint Dc
Tell me the work of HTREDUCE and HTZOOM
Explain about MDI and CMultiDocTemplate ?
Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);
What is the difference between the Encapsulation and Abstraction
25 Answers HCL, Invensys, TCS, Wipro,
what do you mean by psychic window?
Differ GetMessage, PostMessage & PeakMessage?
visual Pogramming c++ coding for create a paint application.. (Please someone help me)