Search code examples
c++charlptstr

Convert lptstr to char*


Would anyone happen to know how to convert type LPTSTR to char * in C++?


Solution

  • Depends if it is Unicode or not it appears. LPTSTR is char* if not Unicode, or w_char* if so.

    Discussed better here (accepted answer worth reading)