LPSTR -> String * __gc ?

  • Thread starter Thread starter Lewap
  • Start date Start date
L

Lewap

Hi
I use in my project GetWindowText function which return LPSTR value i want
input this value (string represented by LPSTR) to TextBox field. How to
convert from LPSTR to String * __gc?
--
Thanks in advance for any help or suggestions


Best regards,
Pawel.
 
I use in my project GetWindowText function which return LPSTR value i want
input this value (string represented by LPSTR) to TextBox field. How to
convert from LPSTR to String * __gc?

just doing
String* s = new String(lpstr);
(or heck, direct assignment will work as well: String* s = lpstr;)
should be enough.
 
Back
Top