-1

I want to create a string for the user which contains "". The way how I do this is below :

CString fileLink;
fileLink.Format(_T(" some text %s "" text with needed characters "" another %s text "), somevariable1 , somevariable2);

But as a result I got string without "".

Thanks in advance

ViliVi
  • 25
  • 6

1 Answers1

0

Solution from @Exhauzt is works. Need to use \" in your string.

" some text %s \" text with needed characters \" another %s text "
ViliVi
  • 25
  • 6