Hello as the title suggests I want to convert a vector,
std::vector<std::string>
to a c-style string, like
char* buffer.
The reason I want the vector to become a c-style string is because I am currently working with the WinApi, and I am specifically trying to use
SetWindowTextA()
which does not take a vector.
And yes, I have to read the data in to a string vector first so there's not really anything I can change there. So if you could help me or point me in the right direction I'd be more than happy ??
EDIT:
To further explain:
Yes I will get several string loaded in to the vector. I simply want all those strings to combine in to one string.
Greetings,
ye546
question from:
https://stackoverflow.com/questions/65645667/c-convert-vectorstdstring-to-char 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…