<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<br>esto es una funcion de una dll paa windows ce 5.0, por favor si me pueden decir por que la funcion loadimage no me funciona, x.bmp se llama el bmp y esta en la raiz del dispositivo. e probado con "\x.bmp" "\\x.bmp" "x.bmp" y lo e copiado en todas las carpetas y nada todo lo demas funciona perfectamente<br><br>bool WINAPI Imprime(int modo, int lineas, int tiempo) <br>{<br>   <br>   bool xRe;<br>   ghCom = Printer_Open(NULL);<br>   <br>    HBITMAP hBitmap;<br>    hBitmap  = NULL; <br>    xRe = false;<br>/*********************************************************************/<br>    hBitmap = (HBITMAP)LoadImage( NULL,TEXT("\\x.bmp"),IMAGE_BITMAP, 0, 0, 0);    <br>/*********************************************************************/<br><br>    if (NULL != hBitmap)<br>        {<br>            xRe = Printer_PrintBitmap(ghCom, hBitmap, modo);<br>            Sleep(tiempo);<br>            Printer_Feed(ghCom, lineas);<br>            //xRe=true;<br>            Sleep(tiempo);<br>            Printer_Close(ghCom);<br>        }<br>   <br>   return (xRe);<br>    <br>};<br><br>muchas gracias por su ayuda<br>Jose Gregorio Cadenas<br><br>                                        <br /><hr />Compartir tus mejores FOTOS es fácil en Messenger <a href='http://events.es.msn.com/windows-live/redes-sociales/default.aspx' target='_new'> ¡DESCUBRE cómo!</a></body>
</html>