LPCTSTR and HRESULT

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello everyone,


If I want to convert LPCTSTR and HRESULT to standard C/C++ data type (like
char*, int, long, etc.), I am wondering what standard data types should I
convert to be safe and do not lose and data precise?


thanks in advance,
George
 
George said:
Hello everyone,


If I want to convert LPCTSTR and HRESULT to standard C/C++ data type (like
char*, int, long, etc.), I am wondering what standard data types should I
convert to be safe and do not lose and data precise?

George:

LPCTSTR is just a typedef for const TCHAR*.

HRESULT I'm not sure, but it can be converted to an SCODE, which is a
DWORD, which is unsigned int.
 
Back
Top