<html><div style='background-color:'><P>hola todos, </P>
<P>le quiero pedir una ayuda,</P>
<P>he hecho esta funcion pero no se como solucionarla, ya que cuando intento compilarla me devuelve errores.</P>
<P>LPCSTR LeerIni(LPCSTR *Seccion ,LPCSTR *Key ,LPCSTR *FileIni ,int *ValorDefecto=-1)<BR>{<BR>DWORD  res;<BR>char Valor[255];<BR>res=GetPrivateProfileString(*Seccion,*Key,ValorDefecto,Valor,sizeof(Valor),*FileIni);<BR>return (LPCSTR)Valor;<BR>}</P>
<P>uso LPCSTR , porke quiero usar el DLL en otros lenguajes de programacion,</P>
<P>aqui esta alguno de los mensajes de error</P>
<P> cannot convert `int*' to `const CHAR*' for argument `3' to `DWORD GetPrivateProfileStringA(const CHAR*, const CHAR*, const CHAR*, CHAR*, DWORD, const CHAR*)' </P>
<P>--------------------------------------------------------------------</P>
<P> [Warning] address of local variable `Valor' returned </P>
<P>---------------------------</P>
<P> invalid conversion from `char' to `const CHAR*' </P>
<P>---------------------------</P>
<P>---------------------------</P>
<P>muchas gracias de antemano por la ayuada<BR><BR><BR></P>
<DIV></DIV>
<DIV></DIV>
<P align=left><FONT face="Geneva, Arial, Sans-serif" color=#000099 size=2><EM></EM></FONT> </P>
<P align=left><FONT face="Geneva, Arial, Sans-serif" color=#000099 size=2><EM></EM></FONT> </P>
<P align=left><FONT face="Geneva, Arial, Sans-serif" color=#000099 size=2><EM></EM></FONT> </P>
<P align=left><FONT face="Geneva, Arial, Sans-serif" color=#000099 size=2><EM></EM></FONT> </P>
<P align=left><FONT face="Geneva, Arial, Sans-serif" color=#000099 size=2><EM></EM></FONT> </P>
<P align=left><FONT face="Geneva, Arial, Sans-serif" color=#000099 size=2><EM>Henry </EM></FONT><FONT color=#000099><FONT face="Geneva, Arial, Sans-serif" size=1><STRONG>     Lima-Peru<IMG height=19 src="http://graphics.hotmail.com/i.p.emthup.gif" width=19></STRONG></FONT></FONT></P></div><br clear=all><hr>Ofertas y reservas para viajar por todo el mundo.  <a href="http://g.msn.com/8HMBESES/2749??PS=47575" target="_top">Organiza y contrata tus viajes aquí.</a> </html>