Link to home
Start Free TrialLog in
Avatar of mikem_2au
mikem_2au

asked on

LPTSTR

hi, could someone please explain - LPTSTR.
why,

 LPTSTR ptr;

and not...

 LPTSTR *ptr

a full explanation on  LPTSTR and how to
use it  would be greatly apriciated.

thanks..
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

LPTSTR is a pointer type, a pointer to a string, or an array of TCHAR to be precise.
Depending of implementation, it can point to a ANSI or Unicode string.

You must not use LPTSTR * because it is a pointer itself:

typedef TCHAR * LPCTSTR;


ASKER CERTIFIED SOLUTION
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Some complementary information here:
http://www.codetools.com/string/tconvert.asp
Avatar of mikem_2au
mikem_2au

ASKER

thankyou for clearing that up for me.