LPCTSTR and HRESULT

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
 
D

David Wilkinson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top