How to convert a LPVOID to wstring

  • Thread starter Thread starter ananda vardhana
  • Start date Start date
A

ananda vardhana

Guest
Very simple question and I struggled for > hour just could not get it to work. Tried all possible solution Google could offer but none seem to work. I tried to_wstring(), static_cast<>, (wstring *) and a litany of other methods ... I am sure there got to be an easy way. Please help me out.

LPVOID y = L"Hello World";

wstring *PtrX;

*PtrX= L"abcd" + y;

What magic can you do to y to make it work?

thanks and good night

ananda

Continue reading...
 
Back
Top