<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Holas ! </DIV>
<DIV> </DIV>
<DIV>checate las macros que se tienen para ese tipo de conversiones.. </DIV>
<DIV> </DIV>
<DIV>ahi te dejo el link..</DIV>
<DIV> </DIV>
<DIV><A href="http://msdn.microsoft.com/es-es/library/87zae4a3(VS.80).aspx">http://msdn.microsoft.com/es-es/library/87zae4a3(VS.80).aspx</A></DIV>
<DIV> </DIV>
<DIV>saludos !</DIV>
<DIV> </DIV>
<DIV align=left>
<DIV align=left><FONT face=com color=#0000ff><STRONG><EM>ATTE:<BR>ISC Edmundo Cuadriello Narvaez<BR>Software Engineer</EM></STRONG></FONT></DIV>
<DIV align=left><STRONG><EM><FONT color=#4040ff>C++, X++, C#, JAVA programmer.</FONT></EM></STRONG></DIV>
<DIV align=left><STRONG><EM><FONT color=#4040ff>Tel: 33-36899320</FONT></EM></STRONG></DIV>
<DIV align=left><STRONG><EM><FONT color=#4040ff>Cel: 33-13555312</FONT></EM></STRONG></DIV></DIV>
<DIV align=left>
<DIV align=left><FONT face=com color=#0000ff><STRONG><EM><A href="mailto:ecnarvaez@yahoo.com" target=_blank rel=nofollow>ecnarvaez@yahoo.com</A></EM></STRONG></FONT></DIV>
<DIV align=left><STRONG><EM><FONT color=#0000ff><A href="mailto:ecnarvaez@hotmail.com" target=_blank rel=nofollow>ecnarvaez@hotmail.com</A></FONT></EM></STRONG></DIV>
<DIV align=left><FONT face=com color=#0000ff><STRONG><EM>"All for Linux, and Linux for every one"</EM></STRONG></FONT></DIV></DIV><BR><BR>--- El <B>mar 12-may-09, Gilberto Cuba Ricardo <I><gilbert@hlg.rimed.cu></I></B> escribió:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>De:: Gilberto Cuba Ricardo <gilbert@hlg.rimed.cu><BR>Asunto: [C con Clase] Convertir std::string a LPTSTR...<BR>A: "Lista de correo sobre C y C++" <cconclase@listas.conclase.net><BR>Fecha: martes 12 de mayo de 2009, 10:36<BR><BR>
<DIV class=plainMail>Hola Lista,<BR><BR>  Conocerán ustedes una forma más sencilla de convertir un string de<BR>  la librería estándar a un LPTSTR? Yo lo he hecho así.<BR><BR><BR>    string st1("Esta es mi cadena");<BR>    LPTSTR lpSt1;<BR><BR>    char *src = (char *)malloc(st1.size());<BR>    memcpy(src, st1.c_str(), st1.size());<BR>    wchar_t *dst = (wchar_t *)malloc(sizeof(wchar_t)*st1.size());<BR><BR>    mbstowcs(dst, src, st1.size());<BR><BR>    lpSt1 = (TCHAR *)(dst);<BR><BR>    printf("%S\n", lpSt1);<BR><BR>    free(src);<BR>    free(dst);<BR>  <BR><BR>-- <BR>Salu2,<BR>Gilbert<BR><BR><BR>_______________________________________________<BR>Lista de correo Cconclase <A href="http://mx.mc307.mail.yahoo.com/mc/compose?to=Cconclase@listas.conclase.net"
 ymailto="mailto:Cconclase@listas.conclase.net">Cconclase@listas.conclase.net</A><BR><A href="http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net" target=_blank>http://listas.conclase.net/mailman/listinfo/cconclase_listas.conclase.net</A><BR>Bajas: <A href="http://listas.conclase.net/index.php?gid=2&mnu=FAQ" target=_blank>http://listas.conclase.net/index.php?gid=2&mnu=FAQ</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>



      <hr size=1><br><font face="Verdana" size="-2">¡Obtén la mejor experiencia en la web!<br>Descarga gratis el nuevo Internet Explorer 8.br>
http://downloads.yahoo.com/ieak8/?l=mx </font>