templates and string literals and UNICODE

后端 未结 7 630
挽巷
挽巷 2020-12-18 09:50

NEW: Thank you everyone who helped me with this! The answer is marked below, and I\'ve expanded on the answer with a functioning version in my question, below (q.v.):

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-18 10:24

    I believe you want the TEXT MFC macro:

    TCHAR* psz = TEXT("Hello, generic string");
    

提交回复
热议问题