What is the simplest way to convert char[] to/from tchar[] in C/C++(ms)?

后端 未结 8 1008
遥遥无期
遥遥无期 2020-12-03 17:02

This seems like a pretty softball question, but I always have a hard time looking up this function because there seem there are so many variations regarding the referencing

8条回答
  •  时光说笑
    2020-12-03 17:39

    I realize this is an old thread, but it didn't get me the "right" answer, so am adding it now.

    The way this appears to be done now is to use the TEXT macro. The example for FindFirstFile at msdn points this out. http://msdn.microsoft.com/en-us/library/windows/desktop/aa364418%28v=vs.85%29.aspx

提交回复
热议问题