Necesito llamara una funcion, y su entrada es LPCWSTR y quiero introducir los datos desde un textbox.
Alquien sabe?
Hola 70N1.
De string a LPCWSTR:
...
std::string str = "un texto";
LPCWSTR LPSTR = (LPCWSTR)str.c_str();
...
Saludos :)
Deberia ser con std::wstring.
Para convertir String^ a PWCHAR tenés que usar la clase Marshall:
http://msdn.microsoft.com/en-us/library/vstudio/bb384865(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/bb384859.aspx
http://msdn.microsoft.com/en-us/library/vstudio/bb531313(v=vs.90).aspx
http://msdn.microsoft.com/en-us/library/42zy2z41.aspx
B#