convert LPWSTR to LPTSTR

  • Thread starter Thread starter Abhishek
  • Start date Start date
thanks but for the convertion method
using
USES_CONVERSION;

Then use W2A and A2W.

regards
Abhishek
 
You found half of the answer. Here's more of the answer:

#ifdef UNICODE
just copy the pointer, or copy the memory unchanged
#else // ANSI
use W2A
#endif // UNICODE or ANSI
 

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

Back
Top