cannot convert from 'std::string' to 'LPSTR'

前端 未结 6 2078
故里飘歌
故里飘歌 2020-12-09 16:12

As I clould not pass LPCSTR from one function to another (Data get changed) I tried passing it as a string.

But later I need to again convert it back to LPSTR. While

6条回答
  •  鱼传尺愫
    2020-12-09 17:02

    There is a function on std::string c_str() . However I doubt that you could not use a std::string in your case.

提交回复
热议问题