topic
stringlengths
1
63
text
stringlengths
1
577k
facturacion
[quote="Susy":2fueihwx]Hola como estan todos ustedes, soy nueva en este foro necesito ayuda urgente y pasando mis aplicaciones de clipper a fivewin, y me quede atorada en un detalle, alguien me propociona un ejemplo de codigo fuente como capturar en una pantalla de facturacion, que me pida num factura, num cliente, y agregar detalles de articulos y cantidad y precio. estoy tratando de usar listbox para captura de detalles Su amiga Susy saludos a todos los colegas[/quote:2fueihwx] mmm un detallito... podrías ser más clara en que tipo de detallito. Si lo que quieres es editar sobre el browse los registros y poder hacer validaciones y modificación con los valores de esos campos o lo que desea hacer es mostrar un dialogo y capturar todos los datos. Que versión de FiveWin estas usando ? y que versión de xHarbour ? Estas usando la clase Wbrowse original de FiveWin ? o la clase modificada por Hernán Ceccarelli ?
facturacion
Hola corazones gracias por contestar, estoy usando fivewin vers 2.6 y xharbour 0.99.60 y nada del browse estoy usando, no tengo conocimientos de esa clase, estoy tratando de usar listbox, o que me recomiendan hacer, estoy atrancada en ese detalle lo demas no tengo ningun problema, solo cuando ya planee hacer modulo de facturacion y sus validaciones es ahi que no tengo idea de como usar el wbrowse, echenme la mano por favor un ejemplo de codigo sencillo con su validacion de campos Su amiga Susy ah y no puedo entrar al messenger, en la empresa donde trabajo no nos permite usar el messenger politica de la empresa gracias a todos y les agradecere de corazon con un codigo de ejemplo corazones Susy <!-- e --><a href="mailto:susan_mx@hotmail.com">susan_mx@hotmail.com</a><!-- e -->
facturacion
Susy un dato para conectarte con el mundo sin tene messenger, visita <!-- w --><a class="postlink" href="http://www.e-messenger.net">www.e-messenger.net</a><!-- w --> alli puedes conectarte a hotmail, yahoo y aol, espero te sirva y si puedes y te envian algo de lo de facturacion mucho te agradeceria si me puedes enviar una copia, estoy en algo parecido a ver en que nos ayudamos, gracias, saludos y un beso desde Venezuela.
facturacion
[quote="joseluisysturiz":q1o40ltn]Susy un dato para conectarte con el mundo sin tene messenger, visita <!-- w --><a class="postlink" href="http://www.e-messenger.net">www.e-messenger.net</a><!-- w --> alli puedes conectarte a hotmail, yahoo y aol, espero te sirva y si puedes y te envian algo de lo de facturacion mucho te agradeceria si me puedes enviar una copia, estoy en algo parecido a ver en que nos ayudamos, gracias, saludos y un beso desde Venezuela.[/quote:q1o40ltn] Hace poco más de 4 años liberé el fuente de una solución similar a la que necesitan, la puedn buscar en el foro anterior de FiveWin y si no la encuentran se las envío a su correo personal.
facturacion
Hola corazon no encontre en el foro de fivewin el codigo fuente que usted libero me la puede enviar a mi correo por favor corazon Ya me urge mucho empezar y por mas que le intento no le hayo <!-- e --><a href="mailto:susan_mx@hotmail.com">susan_mx@hotmail.com</a><!-- e --> Susy su amiga ayuda por favor
facturacion
A MI IGUAL, GRACIAS DE ANTEMANO <!-- e --><a href="mailto:ALEX_PATINO74@HOTMAIL.COM">ALEX_PATINO74@HOTMAIL.COM</a><!-- e -->
facturacion
me sumo a la peticion mi correo <!-- e --><a href="mailto:joseluisysturiz@yahoo.com">joseluisysturiz@yahoo.com</a><!-- e --> gracias de antemano
facturacion
yo creo que los que pasamos de clipper a fivewin es el problema principal que nos tranco o tranca a todos y los ejemplos que vienen son muy basicos casi siempre con una tabla, etc, siempre y me incluyo tengo el problema de hacer una pantalla en que sn 2 partes, una parte encabezado y otra detalles, llamase asientos de contabilidad, facturacion, etc y no hay ningun ejemplo claro, yo todavia uso listbox porque el hecho de meterme con esos browse me da pavor, me pueden salir cualquier cantidad de detalles que me tranquen durante semanas, aunque se ven horribles, trato en principio de que funciones y luego me ocupare de la apariencia, ya que esos detalles de decoracion por decirlo de una manera quitan demasiado tiempo, estamos bombardeados con txwbrose, wbrose, sbrowse y la verdad nadie saber decir cual es el mejor ya que cada quien tiene una necesidad diferente, pero basicamente el lo que piden aqui, me gustaria un ejemplo tanbien claro de algo sencillo, sin rebusques de lo que digo, gracias
facturacion
He aqui un semicodigo para que puedan darse una idea... usando DATABASE...con Twbrowse... aun para losotros browse debe ser iguall y.. se sipone usando cdx.. por lo de ordscope [code:1ewtzh9z] Function FacturaEdit&#40; lNuevo &#41; Local oCli, oFac, oDet, oClon, oGet Local oLbx, oBtn&#91; 3 &#93; Use Clientes New // Campos&#58; Codigo Nombre DATABASE oCli Use Facturas New // Campos&#58; Numero Codigo ValorTotal DATABASE oFac User Detalle New // Campos&#58; Numero Detalle Valor DATABASE oDet If lNuevo oFac&#58;NUMERO &#58;= UnNuevoNumero&#40;&#41; //como incrementas tu numero de la factura !! EndIf &#40; oDet&#58;nArea &#41;->&#40; OrdScope&#40; 0, oFac&#58;NUMERO &#41; &#41; &#40; oDet&#58;nArea &#41;->&#40; OrdScope&#40; 1, oFac&#58;NUMERO &#41; &#41; DEFINE DIALOG oDlg &#46;&#46;&#46;&#46;&#46;&#46;&#46; REDEFINE GET oGet VAR oFac&#58;NUMERO ID 4002 OF oDlg READONLY REDEFINE GET oGet VAR oFac&#58;CODIGO ID 4003 OF oDlg ; VALID oCli&#58;Seek&#40; oFac&#58;CODIGO &#41; ///TWBROWSE &#46;&#46;&#46;&#46;&#46; REDEFINE LISTBOX ID 4001 OF oDlg UPDATE ; FIELDS oDet&#58;DETALLE, oDer&#58;VALOR ; HEADERS "Detalle", "Valor" ; SIZES 200, 90 ; ALIGN &#46;T&#46;, &#46;F&#46; ; oDet&#58;bBof &#58;= &#123;|| Nil &#125; oDet&#58;bEof &#58;= &#123;|| Nil &#125; oDbf&#58;bNetError &#58;= &#123;|| Nil &#125; oLbx&#58;cAlias &#58;= oDet&#58;cAlias //Importante oLbx&#58;bLogicLen &#58;= &#123;|| oDet&#58;RecCount&#40;&#41; &#125; oLbx&#58;bGoTop &#58;= &#123;|| oDet&#58;GoTop&#40;&#41; &#125; oLbx&#58;bGoBottom &#58;= &#123;|| oDet&#58;GoBottom&#40;&#41; &#125; oLBx&#58;bSkip &#58;= &#123;| nSkip | oDet&#58;Skipper&#40; nSkip &#41; &#125; //botones REDEFINE BUTTON oBtn&#91; 1 &#93; ID 4007 OF oDlg PROMPT 'Nuevo" ; ACTION oClon &#58;= oClone&#40; oDet &#41;, ; NuevoDetalle&#40; oClon, oFac &#41;, ; oDlg&#58;Update&#40;&#41; REDEFINE BUTTON oBtn&#91; 2 &#93; ID 4008 OF oDlg PROMPT 'Modificar" ; ACTION oClon &#58;= oClone&#40; oDet &#41;, ; ModificarDetalle&#40; oClon, oFac &#41;, ; oDlg&#58;Update&#40;&#41; REDEFINE BUTTON oBtn&#91; 3 &#93; ID 4009 OF oDlg PROMPT 'Eliminarr" ; ACTION If&#40; MsgYesNo&#40; "Quieres" &#41;, ; &#40; oDet&#58;Delete&#40;&#41;, oDlg&#58;Update&#40;&#41; &#41;, &#41; REDEFINE BUTTON ID 4010 OF oDlg PROMPT 'Grabar" ; ACTION GrabarFactura&#40; oFac, lNuevo &#41; &#46;&#46;&#46;&#46;&#46;&#46; ACTIVATE DIALOG oDlg Return Nil Function NuevoDetalle&#40; oDet, oFac &#41; Local oDlg, oGet oDet&#58;Blank&#40;&#41; oDet&#58;NUMERO &#58;= oFac&#58;NUMERO DEFINE DIALOG oDlg RESOURCE 'EDITDETALLE' REDEFINE GET oGet VAR oDet&#58;DETALLE ID 4001 OF oDlg REDEFINE GET oGet VAR oDet&#58;VALOR ID 4002 PICTURE '999,999,999&#46;99' OF oDlg ACTIVATE DIALOG oDlg oDet&#58;Append&#40;&#41; oDet&#58;Save&#40;&#41; Return Nil Function ModificarDetalle&#40; oDet, oFac &#41; Local oDlg, oGet oDet&#58;Load&#40;&#41; DEFINE DIALOG oDlg RESOURCE 'EDITDETALLE' REDEFINE GET oGet VAR oDet&#58;DETALLE ID 4001 OF oDlg REDEFINE GET oGet VAR oDet&#58;VALOR ID 4002 PICTURE '999,999,999&#46;99' OF oDlg ACTIVATE DIALOG oDlg oDet&#58;Save&#40;&#41; Return Nil Function GrabarFactura&#40; oFac, lNuevo &#41; If lNuevo oFac&#58;Append&#40;&#41; EndIf oFac&#58;Save&#40;&#41; Return Nil [/code:1ewtzh9z] Saludos
facturacion Electronica en Perú... es el momento!
Buen dia mis estimados Desearia saber si alguien del foro ha tenido oportunidad de ver el tema de Facturacion Electronica en Perú. Por lo revisado y entendido en el foro la creacion del Archivo xml tiene todo una estructura y cada pais tiene su standar, ahora estoy recopilando informacion para crear los archivos, les agradecere cualquier informacion, si necesito alguna clase en especial, librerias, etc. , Yo uso Harbour Desde ya, mil Gracias Lubin
facturacion Electronica en Perú... es el momento!
Hola Lubin Tienes la direccion URL donde se encuentra la descripcion del xml a traves del xsd? Saludos
facturacion Electronica en Perú... es el momento!
Hola Lubin,,,, También estoy en ello. Salu2
facturacion Electronica en Perú... es el momento!
Hola Devtuxla , Gracias por responder el tema, pero la verdad que no entendi tu pregunta, como les comente estoy en CERO total, no se si te refieres a los campos del documento electronico , por lo que se estan basados en el Standa UBL , tengo disponibles los Tag UBLs de cada campo del doc. electronico. Mucho me han comoentado que el problema no es crar el documento xml si no insertarle la Firma. Gracias . Lubin
facturacion Electronica en Perú... es el momento!
Hola Willi Gracias por le dato enviado , Si te parece , Preparemos un proyecto para generar estos documentos electronicos (boletas,facturas,notas de credito, notas de debito) para Peru, hoy estuve en la Sunat he recabado informacion complmentaria. Logicamente invitamos a todos los del foro que tengan experiencia en esto para lograr de alguna manera un standar aplicable para Perú, creo en Enrrique Vertiz hatenido experiencia. Estamos en comunicacion. Lubin
facturas A para monotributo en impresora fiscal
Hola buenas tardes, estoy intentando emitir una factura A para monotributo, y me da error al abrir el documento. Alguien ya hizo esta modificación, estoy haciendo algo mal?, no me doy cuenta que puede ser. Al imprimir en factura B lo hace sin problema. Saludos Jorge
facturas A para monotributo en impresora fiscal
Jorge, si la IF es 1ra.generacion no te va a funcionar, aun en las de 2da no se si funcionara, habria q ver si el proveedor saca un driver con esa correccion en caso contrario no podras hacerlo. Saludos.
facturas A para monotributo en impresora fiscal
Jorge: Tengo entendido que para impresoras fiscales de 1ra generacion, la solucion es enviarle como condición de IVA responsable inscripto, y luego debes poner como texto NO FISCAL la leyenda indicada por AFIP. [b:2osgqs3z]"El crédito fiscal discriminado en el presente comprobante, sólo podrá ser computado a efectos del Régimen de Sostenimiento e Inclusión Fiscal para Pequeños Contribuyentes de la Ley Nº 27.618"[/b:2osgqs3z]
facturas A para monotributo en impresora fiscal
Hola gracias por responder, me pude comunicar con hasar y me dijeron que ninguna está preparada, si deben estar las que se inicialicen a partir del 1 de julio. Las actuales tiene que llevar la leyenda impresa en la línea 8 del encabezado. Saludos Jorge
facturas A para monotributo en impresora fiscal
Gracias por la Info!
fading....(hide..show)
Silvio, a complete test : say, get and button - fade [img:1ixxod1p]http&#58;//www&#46;pflegeplus&#46;com/IMAGES/Fade1&#46;jpg[/img:1ixxod1p] [code=fw:1ixxod1p]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"fivewin.ch"</span><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> oDlg, oSay, oGet, cGet := <span style="color: #ff0000;">"Testing Fade IN / OUT"</span>, oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span><br /> <br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFont <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TAHOMA"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-14</span><br /><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">300</span>, <span style="color: #000000;">250</span> <span style="color: #0000ff;">PIXEL</span> TRUEPIXEL <span style="color: #0000ff;">FONT</span> oFont ;<br /><span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Fade IN / OUT"</span> ;<br /><span style="color: #0000ff;">COLOR</span> CLR_BLACK,CLR_WHITE <br /><br />@ <span style="color: #000000;">30</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">SAY</span> oSay <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Testing Fade IN / OUT"</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span>  <span style="color: #0000ff;">FONT</span> oFont <br />@ <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span> <span style="color: #0000ff;">GET</span> oGet <span style="color: #0000ff;">VAR</span>  cGet   <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">150</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span>  <br /><br />@ <span style="color: #000000;">130</span>, <span style="color: #000000;">20</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>  ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Say OUT"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> FADE_INOUT<span style="color: #000000;">&#40;</span> oSay, <span style="color: #000000;">30</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">25</span>, .F., <span style="color: #000000;">0.12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// In</span><br /><br />@ <span style="color: #000000;">130</span>, <span style="color: #000000;">120</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>  ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Say IN"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> FADE_INOUT<span style="color: #000000;">&#40;</span> oSay, <span style="color: #000000;">30</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">25</span>, .T., <span style="color: #000000;">0.12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Out</span><br /><br />@ <span style="color: #000000;">170</span>, <span style="color: #000000;">20</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>  ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Get OUT"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> FADE_INOUT<span style="color: #000000;">&#40;</span> oGet, <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">25</span>, .F., <span style="color: #000000;">0.12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// In</span><br /><br />@ <span style="color: #000000;">170</span>, <span style="color: #000000;">120</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">4</span><span style="color: #000000;">&#93;</span>  ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Get IN"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> FADE_INOUT<span style="color: #000000;">&#40;</span> oGet, <span style="color: #000000;">80</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">150</span>, <span style="color: #000000;">25</span>, .T., <span style="color: #000000;">0.12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Out</span><br /><br />@ <span style="color: #000000;">210</span>, <span style="color: #000000;">20</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">5</span><span style="color: #000000;">&#93;</span>  ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Btn OUT"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> FADE_INOUT<span style="color: #000000;">&#40;</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">170</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">25</span>, .F., <span style="color: #000000;">0.12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// In</span><br /><br />@ <span style="color: #000000;">210</span>, <span style="color: #000000;">120</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">6</span><span style="color: #000000;">&#93;</span>  ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Btn IN"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">80</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> FADE_INOUT<span style="color: #000000;">&#40;</span> oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>, <span style="color: #000000;">170</span>, <span style="color: #000000;">220</span>, <span style="color: #000000;">50</span>, <span style="color: #000000;">25</span>, .T., <span style="color: #000000;">0.12</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// Out</span><br /><br />@ <span style="color: #000000;">170</span>, <span style="color: #000000;">220</span> BUTTONBMP oBtn<span style="color: #000000;">&#91;</span><span style="color: #000000;">7</span><span style="color: #000000;">&#93;</span>  ;<br /><span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"Exit"</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">50</span>, <span style="color: #000000;">25</span> <span style="color: #0000ff;">PIXEL</span> <span style="color: #0000ff;">OF</span> oDlg ;<br /><span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">End</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span>  oDlg <span style="color: #0000ff;">CENTERED</span><br /><br /><span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFont<br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><span style="color: #B900B9;">// -----------------</span><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> FADE_INOUT<span style="color: #000000;">&#40;</span> oObject, nTop, nLeft, nWidth, nHeight, lType, nSpeed <span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">LOCAL</span> nHStep, nWStep <br /><br />nHStep := nHeight / <span style="color: #000000;">5</span> <br />nWStep := nWidth / <span style="color: #000000;">5</span> <br /><br /><span style="color: #00C800;">IF</span>  lType = .F. <span style="color: #B900B9;">// Fade IN</span><br />    <span style="color: #00C800;">FOR</span> I := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">10</span><br />        oObject:<span style="color: #000000;">nTop</span>        := nTop+= <span style="color: #000000;">&#40;</span> nHStep / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />        oObject:<span style="color: #000000;">nLeft</span>       := nLeft+= <span style="color: #000000;">&#40;</span> nWStep / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />        oObject:<span style="color: #000000;">nHeight</span> := nHeight-= nHStep<br />        oObject:<span style="color: #000000;">nWidth</span>  := nWidth-= nWStep<br />        oObject:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        SYSWAIT<span style="color: #000000;">&#40;</span>nSpeed<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">ELSE</span><br />        <span style="color: #B900B9;">// zero position top left</span><br />    nTop := nTop + <span style="color: #000000;">&#40;</span> nHeight / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <br />        nLeft := nLeft + <span style="color: #000000;">&#40;</span> nWidth / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <br />    nHeight := <span style="color: #000000;">0</span><br />    nWidth := <span style="color: #000000;">0</span><br />    <span style="color: #00C800;">FOR</span> I := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">10</span><br />        oObject:<span style="color: #000000;">nTop</span>        := nTop-= nHStep / <span style="color: #000000;">4</span><br />        oObject:<span style="color: #000000;">nLeft</span>       := nLeft-= nWStep / <span style="color: #000000;">4</span><br />        oObject:<span style="color: #000000;">nHeight</span> := nHeight+= <span style="color: #000000;">&#40;</span> nHStep / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />        oObject:<span style="color: #000000;">nWidth</span>  := nWidth+= <span style="color: #000000;">&#40;</span> nWStep / <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span><br />        oObject:<span style="color: #0000ff;">Refresh</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />        SYSWAIT<span style="color: #000000;">&#40;</span>nSpeed<span style="color: #000000;">&#41;</span><br />    <span style="color: #00C800;">NEXT</span><br /><span style="color: #00C800;">ENDIF</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:1ixxod1p] regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
fading....(hide..show)
can we show a get/say fading control?
fading....(hide..show)
Sylvio, You will get a solution in a short time. It will work on other objects as well. A different fading-speed can be defined. Looks great and works perfect. from button-action ( object, style, speed ) [color=#0000FF:13qmndnj]@ 30, 50 SAY oSay PROMPT "Testing Fade IN / OUT" OF oDlg SIZE 150, 25 PIXEL FONT oFont[/color:13qmndnj] The original size-values are needed to fade in again @ 170, 20 BUTTONBMP oBtnOut ; PROMPT "Fade IN" SIZE 80, 25 PIXEL OF oDlg ; ACTION ( [color=#0000FF:13qmndnj]FADE_INOUT( oSay, 25, 150, .F., 0.1 )[/color:13qmndnj] ) // In @ 170, 120 BUTTONBMP oBtnOut ; PROMPT "Fade OUT" SIZE 80, 25 PIXEL OF oDlg ; ACTION ( [color=#0000FF:13qmndnj]FADE_INOUT( oSay, 25, 150, .T., 0.1 )[/color:13qmndnj] ) // Out regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
fading....(hide..show)
where is the function FADE_INOUT ?
fading....(hide..show)
Silvio, I'm still working on / testing. As soon it is finished I will add a sample regards Uwe <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
fading....(hide..show)
I trying with oWnd and odlg but when I wish fade a control object it not run ok
fading....(hide..show)
GOOD but I'm thinking as SetLayeredWindowAttributes
falla de brush con xharbour.com
Antonio Usando FWH 11.03 con xhb.com ultima version, tiene la particularidad de que fallan los brush, con la ultima version de xharbour para borland no hay problema, para ejemplo adjunto una screenshot del ejemplo testxbrw.exe de la carpeta samples, incluso un redefine bitmap en un dialogo falla tambien, oBrush:hBrush tiene un valor de cero. [url=http&#58;//imageshack&#46;us/photo/my-images/684/brushuq&#46;png/:3a6gkd5i][img:3a6gkd5i]http&#58;//img684&#46;imageshack&#46;us/img684/9006/brushuq&#46;png[/img:3a6gkd5i][/url:3a6gkd5i] Uploaded with [url=http&#58;//imageshack&#46;us:3a6gkd5i]ImageShack.us[/url:3a6gkd5i] incluso e probado una fivehcm.lib de junio 2011 que has posteado en el foro y aun falla. salu2 carlos vargas
falla de brush con xharbour.com
por favor antonio, daniel... ayuda <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> salu2 carlos vargas
falla de brush con xharbour.com
You said it works on XP but fails on Windows 7 64 bit Home. Can you confirm it is exactly the same exe file? Or have you built the exes separately on XP and on home 64 bits pc?
falla de brush con xharbour.com
the error is strange, since I've taken a old app, I've compiled latest version with FWH xhb.com 11.03 and works fine, but now I'm developing application that fails, I have no third party libraries or classes FWH changes , no extra code. I have two days with this problem and I can not figure it out. I have functions PALBMPLOAD (used in TBITMAP CLASS) and LOADBITMAP (BRUSH CLASS) both return zero Compiled con xharbour last version all work ok. [code=fw:os1lp9hy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">FUNCTION</span> Main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oBrush, oFont<br /><br />   oApp := TApplication<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> !Main_Configure<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #00C800;">IF</span> !Acceso<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      Main_Close<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">RETURN</span><br />   <span style="color: #00C800;">ENDIF</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">BRUSH</span> oBrush <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"BM_FONDO2"</span><br /><br />?oBrush:<span style="color: #000000;">hBrush</span> <span style="color: #B900B9;">// fwh xhb return zero, i verify what bitmap "BM_FONDO2" is include in the exe</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span>  oFont  <span style="color: #0000ff;">NAME</span> GetDefaultFontName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>, GetDefaultFontHeight<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oApp:<span style="color: #000000;">oMainWnd</span>   ;<br />      <span style="color: #0000ff;">FROM</span> <span style="color: #000000;">1</span>, <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> <span style="color: #000000;">600</span>, <span style="color: #000000;">800</span>      ;<br />      <span style="color: #0000ff;">TITLE</span> <span style="color: #ff0000;">"Sistema de control - CREDICOM, version 1.1a"</span> ;<br />      <span style="color: #0000ff;">ICON</span>  GetIcon<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>            ;<br />      <span style="color: #0000ff;">BRUSH</span> oBrush<br /><br />      <span style="color: #0000ff;">DEFINE</span> MSGBAR oApp:<span style="color: #000000;">oMsgBar</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oMainWnd</span> <span style="color: #0000ff;">PROMPT</span> <span style="color: #ff0000;">"KDSoft(c), Managua, Agosto 2011"</span> <span style="color: #000000;">2010</span><br /><br />      <span style="color: #0000ff;">DEFINE</span> MSGITEM oApp:<span style="color: #000000;">aoItemsMsgBar</span><span style="color: #000000;">&#91;</span> IMB_INFO_CONN  <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oMsgBar</span> <span style="color: #0000ff;">PROMPT</span> oApp:<span style="color: #000000;">InfoConn</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">330</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, <span style="color: #00C800;">NIL</span><br />      <span style="color: #0000ff;">DEFINE</span> MSGITEM oApp:<span style="color: #000000;">aoItemsMsgBar</span><span style="color: #000000;">&#91;</span> IMB_INFO_UTYPE <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oMsgBar</span> <span style="color: #0000ff;">PROMPT</span> oUser:<span style="color: #000000;">cUserType</span>  <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">080</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, <span style="color: #00C800;">NIL</span><br />      <span style="color: #0000ff;">DEFINE</span> MSGITEM oApp:<span style="color: #000000;">aoItemsMsgBar</span><span style="color: #000000;">&#91;</span> IMB_INFO_UID   <span style="color: #000000;">&#93;</span> <span style="color: #0000ff;">OF</span> oApp:<span style="color: #000000;">oMsgBar</span> <span style="color: #0000ff;">PROMPT</span> oUser:<span style="color: #000000;">cUserAlias</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">100</span> <span style="color: #0000ff;">COLOR</span> CLR_BLUE, <span style="color: #00C800;">NIL</span><br /><br />      oApp:<span style="color: #000000;">oMsgBar</span>:<span style="color: #000000;">KeybOn</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      oApp:<span style="color: #000000;">oMainWnd</span>:<span style="color: #000000;">bInit</span> := <span style="color: #000000;">&#123;</span>|| oApp:<span style="color: #000000;">oMainWnd</span>:<span style="color: #000000;">SetFont</span><span style="color: #000000;">&#40;</span> oFont <span style="color: #000000;">&#41;</span>, ShowMenu<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oApp:<span style="color: #000000;">oMainWnd</span> <span style="color: #0000ff;">MAXIMIZED</span> <span style="color: #0000ff;">VALID</span> MsgNoYes<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Desea salir de la aplicación?"</span>, <span style="color: #ff0000;">"Seleccione"</span> <span style="color: #000000;">&#41;</span><br /><br />   Main_Close<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /> </div>[/code:os1lp9hy] [code=fw:os1lp9hy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"credicom.ch"</span><br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br />GLOBAL EXTERNAL oApp, oUser<br /><br /><span style="color: #00C800;">STATIC</span> nIntentos<br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /><br /><span style="color: #00C800;">FUNCTION</span> Acceso<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> oDlg<br />   <span style="color: #00C800;">LOCAL</span> oFnt1<br />   <span style="color: #00C800;">LOCAL</span> lAcceso<br />   <span style="color: #00C800;">PRIVATE</span> cAlias, cContrasena<br /><br />   #ifdef __PRUEBA__<br />   cAlias       := PadR<span style="color: #000000;">&#40;</span> LOGIN_USERDEV, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />   cContrasena  := PadR<span style="color: #000000;">&#40;</span> LOGIN_PASSDEV, <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />   #else<br />   cAlias       := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />   cContrasena  := Space<span style="color: #000000;">&#40;</span> <span style="color: #000000;">10</span> <span style="color: #000000;">&#41;</span><br />   #endif<br /><br />   lAcceso   := <span style="color: #00C800;">FALSE</span><br />   nIntentos := <span style="color: #000000;">0</span><br /><br />   DBSELECT <span style="color: #ff0000;">"USUA"</span><br />   USUA-><span style="color: #000000;">&#40;</span> OrdSetFocus<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"ALIAS"</span> <span style="color: #000000;">&#41;</span>, DBGoTop<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">FONT</span> oFnt1 <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"Tahoma"</span> <span style="color: #0000ff;">SIZE</span> <span style="color: #000000;">0</span>,<span style="color: #000000;">-12</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"DLG_ACCESO"</span> <span style="color: #0000ff;">ICON</span> GetIcon<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFnt1<br /><br />   <span style="color: #0000ff;">REDEFINE</span> BITMAP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"BM_ACCESO"</span> <span style="color: #B900B9;">//this bitmap is not show in dialog, i verify what bitmap "BM_ACCESO" is included in the exe</span><br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> cAlias      <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@!"</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> cContrasena <span style="color: #0000ff;">ID</span> <span style="color: #000000;">102</span> <span style="color: #0000ff;">OF</span> oDlg<br /><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">201</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> IIf<span style="color: #000000;">&#40;</span> lAcceso := Acceso_Validar<span style="color: #000000;">&#40;</span> oDlg <span style="color: #000000;">&#41;</span>, oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #00C800;">NIL</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">BUTTON</span> <span style="color: #0000ff;">ID</span> <span style="color: #000000;">202</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">ACTION</span> oDlg:<span style="color: #000000;">END</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> CANCEL<br /><br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">CENTER</span><br /><br />   LimpiarAreas<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">RELEASE</span> <span style="color: #0000ff;">FONT</span> oFnt1<br />   <span style="color: #0000ff;">RELEASE</span> cAlias, cContrasena<br /><br /><span style="color: #00C800;">RETURN</span> lAcceso<br /><br /><span style="color: #B900B9;">/*-------------------------------------------------------------------------------------------------*/</span><br /> </div>[/code:os1lp9hy] [code=fw:os1lp9hy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> LOADBITMAP <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   #ifndef UNICODE<br />      #ifndef _WIN64<br />         HBITMAP hBmp = LoadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HINSTANCE <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />                                    <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> HB_ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />                                    <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />      #else                              <br />         HBITMAP hBmp = LoadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HINSTANCE <span style="color: #000000;">&#41;</span> hb_parnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />                                    <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> HB_ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>,<br />                                    <span style="color: #000000;">&#40;</span> LPSTR <span style="color: #000000;">&#41;</span> MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />      #endif<br />   #else<br />      LPWSTR pW = AnsiToWide<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;                              <br />      HBITMAP hBmp = LoadBitmap<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HINSTANCE <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />                                 <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> HB_ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, pW,<br />                                 <span style="color: #000000;">&#40;</span> LPWSTR <span style="color: #000000;">&#41;</span> MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />      _xfree<span style="color: #000000;">&#40;</span> pW <span style="color: #000000;">&#41;</span>;<br />   #endif                              <br /><br />   RegisterResource<span style="color: #000000;">&#40;</span> hBmp, <span style="color: #ff0000;">"BMP"</span> <span style="color: #000000;">&#41;</span>;<br /><br />   hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> unsigned long <span style="color: #000000;">&#41;</span> hBmp <span style="color: #000000;">&#41;</span>;<br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:os1lp9hy] [code=fw:os1lp9hy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> PALBMPLOAD <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( cResourceName )</span><br /><span style="color: #000000;">&#123;</span><br />    #ifndef UNICODE<br />       HRSRC  hRes = FindResource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMODULE <span style="color: #000000;">&#41;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />                     <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> HB_ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<br />                     RT_BITMAP <span style="color: #000000;">&#41;</span>;<br />    #else<br />       LPWSTR pW = AnsiToWide<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />       HRSRC  hRes = FindResource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMODULE <span style="color: #000000;">&#41;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />                     <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> HB_ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, pW, MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<br />                     RT_BITMAP <span style="color: #000000;">&#41;</span>;<br />    #endif                 <br />    HANDLE hResource = <span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> hRes, LoadResource<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, hRes <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span>;<br /><br />    #ifdef UNICODE<br />       _xfree<span style="color: #000000;">&#40;</span> pW <span style="color: #000000;">&#41;</span>;<br />    #endif   <br /><br />    <span style="color: #00C800;">if</span><span style="color: #000000;">&#40;</span> hRes <span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#123;</span><br />       #ifndef __FLAT__<br />          hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />          hb_stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> hPalBitmapNew<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">&#40;</span>LPBITMAPINFO<span style="color: #000000;">&#41;</span> GlobalLock<span style="color: #000000;">&#40;</span> hResource <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />          hb_stornl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> hPalette, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />          GlobalUnlock<span style="color: #000000;">&#40;</span> hResource <span style="color: #000000;">&#41;</span>;<br />       #else<br />          hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />          hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> hPalBitmapNew<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">&#40;</span> struct tagBITMAPINFO * <span style="color: #000000;">&#41;</span> hResource <span style="color: #000000;">&#41;</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />          hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> hPalette, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />       #endif<br />       #ifndef UNICODE<br />          FreeResource<span style="color: #000000;">&#40;</span> hResource <span style="color: #000000;">&#41;</span>;<br />       #endif   <br />    <span style="color: #000000;">&#125;</span><br />    <span style="color: #00C800;">else</span><br />    <span style="color: #000000;">&#123;</span><br />       hb_reta<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />       hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />       hb_storvnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">-1</span>, <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>;<br />    <span style="color: #000000;">&#125;</span><br /><span style="color: #000000;">&#125;</span><br /> </div>[/code:os1lp9hy] [url=http&#58;//img710&#46;imageshack&#46;us/i/bitmapfail1&#46;png/:os1lp9hy][img:os1lp9hy]http&#58;//img710&#46;imageshack&#46;us/img710/8823/bitmapfail1&#46;th&#46;png[/img:os1lp9hy][/url:os1lp9hy] [url=http&#58;//img97&#46;imageshack&#46;us/i/bitmapok1&#46;png/:os1lp9hy][img:os1lp9hy]http&#58;//img97&#46;imageshack&#46;us/img97/2859/bitmapok1&#46;th&#46;png[/img:os1lp9hy][/url:os1lp9hy] [url=http&#58;//img543&#46;imageshack&#46;us/i/brushfail1&#46;png/:os1lp9hy][img:os1lp9hy]http&#58;//img543&#46;imageshack&#46;us/img543/6252/brushfail1&#46;th&#46;png[/img:os1lp9hy][/url:os1lp9hy] [url=http&#58;//img832&#46;imageshack&#46;us/i/brushok1&#46;png/:os1lp9hy][img:os1lp9hy]http&#58;//img832&#46;imageshack&#46;us/img832/4526/brushok1&#46;th&#46;png[/img:os1lp9hy][/url:os1lp9hy]
falla de brush con xharbour.com
Carlos, Could you please test it using samples\buildx.bat with free xHarbour ? thanks Here it is working fine with MSVC 2010 and samples\buildh32.bat
falla de brush con xharbour.com
Antonio lo interesante de esto es que tengo un app mas pequeña en la cual funciona correctamente todo, pero esta ultima es mas grande, y creme cuando te digo que en estos dos dias he buscado en el codigo cualquier cosa que alterase los resultados, repito que no he usado libs de terceros, ni modificaciones a las clases tbitmap y brush, ambas app usa las misma libs, el mismo orden, y ambas funcionan muy bien con xharbour free de bcc, pero al usar xhb.com solo la mas pequeña no presenta el problema. ahora he cometido un error al indicar que se usara testxbrw como proueba ya que cuando compile para xhb.com no he incluido el rc por lo cual el recurso no fue incluido y por tanto no fue presentado el fondo. por lo cual por favvor disculap al señalar que se usara como ejemplo-
falla de brush con xharbour.com
Carlos, Por favor modifica la clase TBrush para que justo despues de llamar a LoadBitmap() llame a MsgInfo( GetErrMsg() ) y asi sepamos que error de Windows ha ocurrido para que no se cargue el bitmap, gracias O prueba a llamar a esa función despues de mostrar hBrush. Lo que ocurre es que alguna operación previa de Windows puede cambiar la información del ultimo error a estado de no error.
falla de brush con xharbour.com
en este caso muestra correctamente el nombre del recurso, el cual he verificado exista en el exe usando resedit GetResource esta retornando un valor numerico. en brush.prg [code=fw:lsoll8bp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">case</span> cBmpRes != <span style="color: #00C800;">nil</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">hBitmap</span> = LoadBitmap<span style="color: #000000;">&#40;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cBmpRes <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> GetErrMsg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;?ProcName<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,cBmpRes, GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,::<span style="color: #000000;">hBitmap</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> GetErrMsg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">hBrush</span> &nbsp;= <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBitmap</span> != <span style="color: #000000;">0</span>, CreatePatternBrush<span style="color: #000000;">&#40;</span> ::<span style="color: #000000;">hBitmap</span> <span style="color: #000000;">&#41;</span>,<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> GetErrMsg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br /> </div>[/code:lsoll8bp] [quote:lsoll8bp] TBRUSH:NEW BM_FONDO2 4194304 0 retorno de GetErrMsg es: El nombre de recurso especificado no se encuentra en el archivo de imagen. [/quote:lsoll8bp] en bitmap.prg [code=fw:lsoll8bp]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">METHOD</span> LoadImage<span style="color: #000000;">&#40;</span> cResName, cBmpFile <span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> TBitmap<br /><br />   <span style="color: #00C800;">local</span> lChanged := .f.<br />   <span style="color: #00C800;">local</span> hBmpOld  := ::<span style="color: #000000;">hBitmap</span><br />   <span style="color: #00C800;">local</span> hPalOld  := ::<span style="color: #000000;">hPalette</span><br />   <span style="color: #00C800;">local</span> aBmpPal<br /><br />   <span style="color: #00C800;">DEFAULT</span> cResName := ::<span style="color: #000000;">cResName</span>, cBmpFile := ::<span style="color: #000000;">cBmpFile</span><br /><br />   <span style="color: #00C800;">if</span> ! Empty<span style="color: #000000;">&#40;</span> cResName <span style="color: #000000;">&#41;</span><br />       ?cBmpRes, GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />       aBmpPal    = PalBmpLoad<span style="color: #000000;">&#40;</span> cResName <span style="color: #000000;">&#41;</span><br />       <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> GetErrMsg<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />       ::<span style="color: #000000;">hBitmap</span>  = aBmpPal<span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span><br />       ::<span style="color: #000000;">hPalette</span> = aBmpPal<span style="color: #000000;">&#91;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#93;</span><br />       lChanged  := .t.<br />       cBmpFile  := <span style="color: #00C800;">nil</span><br /> </div>[/code:lsoll8bp] [quote:lsoll8bp] TBITMAP:LOADIMAGE BM_ACCESO 4194304 2 0 0 aca MsgInfo( GetErrMsg() ) indica operacion realizada correctamente, lo que pasa es que los valores del array son 0 [/quote:lsoll8bp]
falla de brush con xharbour.com
un dato extra he pasado mis recursos a una dll y usado set resources to "mifile.dll" y todo funciona bien con fwh + xhb.com la falla esta con los recursos agregados al exe, los cuales la funciones indicadas no estan detectando segun los mensajes de error (siguiendo las indicaciones de AL) hay que ver por que lo desconoce, hay que señalar que otros recursos que se usan como botones en las toolbar iconos, dialogos, manifest funciona bien, de momento he notado falla en los brush, bitmaps, los cuales usan las funciones LoadBitmap y PalBmpLoad. salu2 carlos vargas
falla de brush con xharbour.com
antonio la funcion FindResource de bajo nivel (en 'c') donde se encuentra? he llegado rastreando el problema hasta ahi, y no puedo continuar [code=fw:2mt6lklo]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; #ifndef UNICODE<br />&nbsp; &nbsp; &nbsp; &nbsp;HRSRC &nbsp;hRes = FindResource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HMODULE <span style="color: #000000;">&#41;</span> GetResources<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span><span style="color: #000000;">&#40;</span> HB_ISCHAR<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;RT_BITMAP <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; #else<br /><br />&nbsp;</div>[/code:2mt6lklo] hay una llamada HB_FUNC( FINDRESOURCE), pero ya es una funcion de FWH [code=fw:2mt6lklo]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> FINDRESOURCE <span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// ( hResources, cResourceName, nResType )</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;OutputDebugStringA<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"FindResource<span style="color: #000000;">\n</span>"</span><span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">//esto nunca se llega amostrar en el depurador</span><br />&nbsp; &nbsp;#ifndef UNICODE<br />&nbsp; &nbsp; &nbsp; #ifndef _WIN64<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> FindResource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HINSTANCE <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #else<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> FindResource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HINSTANCE <span style="color: #000000;">&#41;</span> hb_parnll<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span>, MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; #endif<br />&nbsp; &nbsp;#else<br />&nbsp; &nbsp; &nbsp; &nbsp;LPWSTR pW = AnsiToWide<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; hb_retnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> LONG <span style="color: #000000;">&#41;</span> FindResource<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> HINSTANCE <span style="color: #000000;">&#41;</span> hb_parnl<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pW, MAKEINTRESOURCE<span style="color: #000000;">&#40;</span> hb_parni<span style="color: #000000;">&#40;</span> <span style="color: #000000;">3</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; _xfree<span style="color: #000000;">&#40;</span> pW <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp;#endif<br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:2mt6lklo]
falla de brush con xharbour.com
baueno <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> continuando con las prueba, ya descarte falla en FindResources, ademas he hecho un cambio [code=fw:25p8gmoc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"DLG_ACCESO"</span> <span style="color: #0000ff;">ICON</span> GetIcon<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFnt1<br /><br />   <span style="color: #0000ff;">REDEFINE</span> BITMAP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"BM_ACCESO"</span><br /> </div>[/code:25p8gmoc] por [code=fw:25p8gmoc]<div class="fw" id="{CB}" style="font-family: monospace;"><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">DIALOG</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"DLG_ACCESO"</span> <span style="color: #0000ff;">ICON</span> GetIcon<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #0000ff;">FONT</span> oFnt1<br /><br />   <span style="color: #0000ff;">REDEFINE</span> BITMAP <span style="color: #0000ff;">ID</span> <span style="color: #000000;">301</span> <span style="color: #0000ff;">OF</span> oDlg <span style="color: #0000ff;">NAME</span> <span style="color: #ff0000;">"TB_DELETE"</span><br /> </div>[/code:25p8gmoc] he cambiado el nombre del resource bitmap y aparece al bendito bitmap, lo raro es que ambos bitmap son agregados [quote:25p8gmoc] TB_DELETE BITMAP ".\\bitmaps\\form_delete.bmp" BM_ACCESO BITMAP ".\\bitmaps\\logo_acceso.bmp" [/quote:25p8gmoc] ambos son de 24 bits.
falla de brush con xharbour.com
para aclarar la falla aun existe, lo que pasa es que cambio la imagen de acceso por una imagen de un boton de borrado y este si aparece loque me llevo a revisar el bitmap de la imagen que no es mostrada, la he eliminado de recursos y la he cargado al rc nuvamente sin resultados positivos, en el caso de la imagen de fondo tengo 6: FONDO0, FONDO1,..FONDO5 y nunguno es mostrada en el fondo de la pantalla como brush. salu2 carlos vargas
falla de brush con xharbour.com
Hola Carlos Trate de contacterme contigo por medio del msn sin resultado (por el email que tienes asignado), si es posible contactame a ver si juntos podemos resolverlo si tienes alguna otra via, hazmela saber por mi correo
falla de brush con xharbour.com
ok, estare a partir de este momento en 1 1/2 hora en el msn, aca son las 12, por lo que estar a las 1:30 en linea. voy saliendo hacia el trabajo.. gracias daniel,
falla de brush con xharbour.com
Carlos, FindResource() es una funcion propia del API de Windows [url:32rq3ss1]http&#58;//msdn&#46;microsoft&#46;com/en-us/library/ms648042(v=vs&#46;85)&#46;aspx[/url:32rq3ss1]
falla ribbon style 2015
Hola: Poniendo en samples\ribbon2.prg la cláusula 2015 para activar ese estilo no funciona correctamente: [img:ieyg9qjq]https&#58;//i&#46;postimg&#46;cc/Nj5bVGvt/RIBBON2&#46;png[/img:ieyg9qjq] Muchas gracias.
falla ribbon style 2015
Up!
falla ribbon style 2015
Antonio and James made a SetStyle for ribbon , search on english forum
falla y corrección - MsgDate
Estimado, recientemente tuve problemas con MsgDate, porque al usarla de cierta forma se bloqueaba la app. sucedía que la usaba de esta forma [code=fw:1xlv2yns]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">REDEFINE</span> <span style="color: #0000ff;">GET</span> oFechaOfe <span style="color: #0000ff;">VAR</span> dFechaOfe ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ID</span> <span style="color: #000000;">101</span> <span style="color: #0000ff;">OF</span> oFolder:<span style="color: #000000;">aDialogs</span><span style="color: #000000;">&#91;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#93;</span> ;<br />&nbsp; &nbsp; &nbsp; BITMAP <span style="color: #ff0000;">"BMS_CALEND"</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">ACTION</span> <span style="color: #000000;">&#40;</span> dFechaOfe:=MsgDate<span style="color: #000000;">&#40;</span> dFechaOfe, <span style="color: #ff0000;">"Seleccione fecha de ingreso1"</span> , oFechaOfe <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> ;<br />&nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">PICTURE</span> <span style="color: #ff0000;">"@D"</span><br />&nbsp;</div>[/code:1xlv2yns] pero cuando dFechaOfe estaba vacia, no se llegaba amostrar el calendario y se bloqueba la app. revisando el fuente de dicha funcion me encontre esto: [code=fw:1xlv2yns]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> dDate := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, cPrompt := <span style="color: #ff0000;">"Seleccione una fecha"</span><br /><br />....<br /><br />&nbsp; &nbsp;dDate -= Day<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> - <span style="color: #000000;">1</span><br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> DoW<span style="color: #000000;">&#40;</span> dDate <span style="color: #000000;">&#41;</span> != <span style="color: #000000;">2</span> <span style="color: #B900B9;">// Monday</span><br />&nbsp; &nbsp; &nbsp; dDate --<br />&nbsp; &nbsp;<span style="color: #00C800;">enddo</span><br />&nbsp;</div>[/code:1xlv2yns] le explico lo que encontré, al inicio de define dDate por defecto con el valor de la fecha actual [quote:1xlv2yns]DEFAULT dDate = date()[/quote:1xlv2yns] ojo aca por defecto dDate tomara el valor de la fecha cuando el valor de dDate sea NIL, pero cuando dDate esta vació, dDate así se quedaba. luego el ciclo while quedaba infinito dato que day retorna 0 para una fecha vacia. se soluciona modificando la función así [code=fw:1xlv2yns]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #00C800;">DEFAULT</span> cPrompt := <span style="color: #ff0000;">"Seleccione una fecha"</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> dDate==<span style="color: #00C800;">NIL</span> .or. Empty<span style="color: #000000;">&#40;</span>dDate<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; dDate = Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp;</div>[/code:1xlv2yns]
falla y corrección - MsgDate
Thanks for pointing it out. Fixed for next release. (13.06)
fallo en hb_xfree
El siguiente código devuelve error y no soy capaz de dar con una solución: [code=fw:a6m3pksy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">/* STR_EXTRAECARACTERES &nbsp; OJO ESTÁ FALLANDO EN hb_xfree(cadena)<br />&nbsp; &nbsp;Devuelve la parte de caracteres de una cadena.<br />*/</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STR_EXTRAECARACTERES <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;size_t nSize;<br />&nbsp; &nbsp;char *cadena; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Contendrá una copia para trabajar de la cadena pasada a la función</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;nSize = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>; <span style="color: #B900B9;">//Suma uno para incluir el caracter de final de cadena='\0'</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//cadena=(char *)malloc(nSize); &nbsp; &nbsp; // Reserva la memoria para la variable: cadena.</span><br />&nbsp; &nbsp;cadena=<span style="color: #000000;">&#40;</span>char *<span style="color: #000000;">&#41;</span>hb_xgrab<span style="color: #000000;">&#40;</span>nSize<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;memcpy<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> cadena, <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, nSize <span style="color: #000000;">&#41;</span>;<br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> *cadena && !isdigit<span style="color: #000000;">&#40;</span>*cadena<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cadena++;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;*cadena=<span style="color: #ff0000;">'<span style="color: #000000;">\0</span>'</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Devuelve la cadena al prg:</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//MessageBox( GetActiveWindow(), result, "Resultado:", 0x40 );</span><br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> cadena <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span>cadena<span style="color: #000000;">&#41;</span>; &nbsp;<span style="color: #B900B9;">//Libera la memoria reservada para la variable: cadena</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// hb_xfree(cadena) Si se usa esta de Harbour es más seguro el liberado.</span><br /><span style="color: #000000;">&#125;</span></div>[/code:a6m3pksy]
fallo en hb_xfree
Que error te da ? Aqui compila bien asi, añadiendo solo los ficheros de cabecera y el pragma BEGINDUMP ... ENDDUMP: [code=fw:37tcu2w9]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STR_EXTRAECARACTERES <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;size_t nSize;<br />&nbsp; &nbsp;char *cadena; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Contendrá una copia para trabajar de la cadena pasada a la función</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;nSize = <span style="color: #0000ff;">strlen</span><span style="color: #000000;">&#40;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span>; <span style="color: #B900B9;">//Suma uno para incluir el caracter de final de cadena='\0'</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//cadena=(char *)malloc(nSize); &nbsp; &nbsp; // Reserva la memoria para la variable: cadena.</span><br />&nbsp; &nbsp;cadena=<span style="color: #000000;">&#40;</span>char *<span style="color: #000000;">&#41;</span>hb_xgrab<span style="color: #000000;">&#40;</span>nSize<span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;memcpy<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> cadena, <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, nSize <span style="color: #000000;">&#41;</span>;<br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> *cadena && !isdigit<span style="color: #000000;">&#40;</span>*cadena<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cadena++;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;*cadena=<span style="color: #ff0000;">'<span style="color: #000000;">\0</span>'</span>;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Devuelve la cadena al prg:</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//MessageBox( GetActiveWindow(), result, "Resultado:", 0x40 );</span><br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> cadena <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span>cadena<span style="color: #000000;">&#41;</span>; &nbsp;<span style="color: #B900B9;">//Libera la memoria reservada para la variable: cadena</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// hb_xfree(cadena) Si se usa esta de Harbour es más seguro el liberado.</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:37tcu2w9]
fallo en hb_xfree
Aqui tambien podria faltarte añadir un byte más: memcpy( ( void * ) cadena, ( void * ) hb_parc( 1 ), nSize + 1 );
fallo en hb_xfree
El problema me lo ha dado en ejecución. Voy a probar añadir ese + 1 a ver si es por eso
fallo en hb_xfree
Pero creo que el problema no debería ser el +1 porque ese ya está incluido en nSize.
fallo en hb_xfree
Otra forma más sencilla: strcpy( ( char * ) cadena, ( char * ) hb_parc( 1 ) );
fallo en hb_xfree
Tienes razón con nSize, y el fallo es muy sutil <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Estas modificando cadena! No puedes hacer eso, o no devolveras correctamente su comienzo <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> [code=fw:10zlotts]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><br /><span style="color: #00D7D7;">#include</span> <hbapi.h><br /><span style="color: #00D7D7;">#include</span> <windows.h><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STR_EXTRAECARACTERES <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   char * cadena = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;      <span style="color: #B900B9;">// Contendrá una copia para trabajar de la cadena pasada a la función</span><br />   char * pIndex = cadena;    <br />       <br />   strcpy<span style="color: #000000;">&#40;</span> cadena, hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;     <br />       <br />   <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> * pIndex && ! isdigit<span style="color: #000000;">&#40;</span> * pIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      pIndex++;<br />   <br />   * pIndex = <span style="color: #ff0000;">'<span style="color: #000000;">\0</span>'</span>;<br />   <br />   hb_retc<span style="color: #000000;">&#40;</span> cadena <span style="color: #000000;">&#41;</span>;       <br />   hb_xfree<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span> void * <span style="color: #000000;">&#41;</span> cadena <span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">//Libera la memoria reservada para la variable: cadena</span><br />                        <span style="color: #B900B9;">// hb_xfree(cadena) Si se usa esta de Harbour es más seguro el liberado.</span><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:10zlotts]
fallo en hb_xfree
Esta línea la puedes simplificar asi: * pIndex = 0;
fallo en hb_xfree
Verhoven, Si vas a procesar un gran número de cadenas, puedes acelerar el proceso evitando llamar a hb_xgrab() y hb_xfree() que son lentos en procesos muy repetitivos. Quedaría asi: [code=fw:1s73k6un]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"string.h"</span><br /><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STR_EXTRAECARACTERES <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />   char * cadena = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>; <br />   char * pIndex = cadena; <br />       <br />   <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> * pIndex && ! isdigit<span style="color: #000000;">&#40;</span> * pIndex <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />        pIndex++;<br />   <br />   hb_retclen<span style="color: #000000;">&#40;</span> cadena, pIndex - cadena <span style="color: #000000;">&#41;</span>;       <br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP</div>[/code:1s73k6un]
fallo en hb_xfree
Va perfectamente Antonio. La copio a continuación para todo aquel que le pueda servir: [code=fw:3lzo5u9y]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"string.h"</span><br /><br /><span style="color: #B900B9;">/* STR_EXTRAECARACTERES<br />&nbsp; &nbsp;Devuelve la parte de caracteres inicial de una cadena que contenga números a partir de<br />&nbsp; &nbsp; un cierto caracter. Ejemplo de uso desde un PRG:<br />&nbsp; &nbsp; <br />&nbsp; &nbsp; STR_EXTRAECARACTERES( "cParteCaracteres0123" ) &nbsp;--> cParteCaracteres<br />*/</span><br /><span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STR_EXTRAECARACTERES <span style="color: #000000;">&#41;</span><br /><span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp;char *cadena = <span style="color: #000000;">&#40;</span>char *<span style="color: #000000;">&#41;</span>hb_xgrab<span style="color: #000000;">&#40;</span> hb_parclen<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">+1</span> <span style="color: #000000;">&#41;</span>; <span style="color: #B900B9;">// Contendrá una copia para trabajar de la cadena pasada a la función</span><br />&nbsp; &nbsp;char *pIndex = cadena; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// Suma uno para incluir el caracter de final de cadena='\0'</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp;strcpy<span style="color: #000000;">&#40;</span> cadena, hb_parc<span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; <br />&nbsp; &nbsp;<span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> *pIndex && !isdigit<span style="color: #000000;">&#40;</span>*pIndex<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; pIndex++;<br />&nbsp; &nbsp;<br />&nbsp; &nbsp;*pIndex = <span style="color: #000000;">0</span>; &nbsp; <br />&nbsp; &nbsp;<br />&nbsp; &nbsp;<span style="color: #B900B9;">//Devuelve la cadena al prg recortada hasta donde empiezan los dígitos:</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//MessageBox( GetActiveWindow(), cadena, "Resultado:", 0x40 );</span><br />&nbsp; &nbsp;hb_retc<span style="color: #000000;">&#40;</span> cadena <span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp;hb_xfree<span style="color: #000000;">&#40;</span> <span style="color: #000000;">&#40;</span>void *<span style="color: #000000;">&#41;</span>cadena <span style="color: #000000;">&#41;</span>; &nbsp;<span style="color: #B900B9;">//Libera la memoria reservada para la variable: cadena</span><br /><span style="color: #000000;">&#125;</span><br /><span style="color: #00D7D7;">#pragma</span> ENDDUMP<br /><br />&nbsp;</div>[/code:3lzo5u9y]
fallo en hb_xfree
Una pregunta para ver si yo te puedo ayudar... Qué hace la función? Si lo que hace es estraer caracteres no debería ser algo así: [code=fw:235euj1q]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    <span style="color: #B900B9;">/* STR_EXTRAECARACTERES   OJO ESTÁ FALLANDO EN hb_xfree(cadena)<br />       Devuelve la parte de caracteres de una cadena.<br />    */</span><br />    <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STR_EXTRAECARACTERES <span style="color: #000000;">&#41;</span><br />    <span style="color: #000000;">&#123;</span><br />       size_t nSize = hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> + <span style="color: #000000;">1</span>;<br />       char *cadena = hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;      <span style="color: #B900B9;">// Contendrá una copia para trabajar de la cadena pasada a la función</span><br />       char *wCadena =  <span style="color: #000000;">&#40;</span>char *<span style="color: #000000;">&#41;</span> hb_xgrab<span style="color: #000000;">&#40;</span> nSize <span style="color: #000000;">&#41;</span>;   <br />    <br />       <span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> *cadena && !HB_ISDIGIT<span style="color: #000000;">&#40;</span>*cadena<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />       <span style="color: #000000;">&#123;</span><br />             *wCadena++ = *cadena++;    <br />       <span style="color: #000000;">&#125;</span><br />       *wCadena++ = <span style="color: #ff0000;">'<span style="color: #000000;">\0</span>'</span>;<br />       <br />       <span style="color: #B900B9;">//Devuelve la cadena al prg:</span><br />       <span style="color: #B900B9;">//MessageBox( GetActiveWindow(), result, "Resultado:", 0x40 );</span><br />       hb_retc<span style="color: #000000;">&#40;</span> wCadena <span style="color: #000000;">&#41;</span>;      <br />       hb_xfree<span style="color: #000000;">&#40;</span>wCadena<span style="color: #000000;">&#41;</span>;  <span style="color: #B900B9;">//Libera la memoria reservada para la variable: cadena</span><br />    <span style="color: #000000;">&#125;</span><br /> </div>[/code:235euj1q]
fallo en hb_xfree
Creo que tu función original no funcionaría con esto: abcd23htpl67w por ejemplo
fallo en hb_xfree
Gracias Manuel, pero si ves el código de los mensajes de Antonio que quedan incorporados al último post anterior mío el programa ha quedado funcionando bien. El asunto consiste en que hay un programa que genera datos en un fichero muy grande y necesito ir separando los comando (alfabético solo) de sus valores (dígitos decimales). Como es un volumen muy grande de datos necesito una función C que lo haga lo más rápido posible, y se nota de hecho que es más rápido desarrollado en C. Las cadenas me llegan como: CmdCRKg00123 y necesito sacar por un lado la parte de caracteres y por otro la del número, de ahí la necesidad de desarrollar esa función. Lo que hago es con el puntero que manda el PRG a la función C mediante hb_parc( nº de orden del argumento pasado a la función ) copiar los datos a una variable nueva dentro del código C para trabajar con ella: Primero se reserva memoria para una variable llamada "cadena" donde se copiará la cadena, valga la redundancia, pasada a la función C. Se copia la cadena pasada a la función a esa variable. Se va inspeccionando caracter por caracter para ver si es un dígito. Cuando encuentra el primer dígito coloca en esa posición una marca de final de cadena '\0': con *pIndex = '\0' ó *pIndex = 0. Devuelve al PRG el puntero de la variable "cadena", modificada con ese '\0' insertado, de forma que el PRG cuando lo encuentre da por concluida la cadena en esa posición de memoria omitiendo con ello la parte numérica de la cadena original. Termina liberando la memoria reservada para la variable cadena. Se tarda más en explicarlo que en hacerlo.
fallo en hb_xfree
Antonio,el propotipo de hb_retclen es este: hb_retclen( const char * szText, HB_SIZE nLen ); Por tanto no sería así? [code=fw:1x219rh1]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#pragma</span> BEGINDUMP<br />&nbsp; &nbsp; <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbapi.h"</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"windows.h"</span><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"string.h"</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">HB_FUNC</span><span style="color: #000000;">&#40;</span> STR_EXTRAECARACTERES <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;char * cadena = <span style="color: #000000;">&#40;</span> char * <span style="color: #000000;">&#41;</span> hb_parc<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;HB_SIZE ilen = hb_parclen<span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp;HB_SIZE iIndex = <span style="color: #000000;">0</span>;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">while</span> <span style="color: #000000;">&#40;</span> * cadena && ! isdigit<span style="color: #000000;">&#40;</span> * cadena <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; iIndex++;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; *cadena++;<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp;hb_retclen<span style="color: #000000;">&#40;</span> cadena, iLen - iIndex<span style="color: #000000;">&#41;</span>; &nbsp; &nbsp; &nbsp;<br />&nbsp; &nbsp; <span style="color: #000000;">&#125;</span><br /><br />&nbsp; &nbsp; <span style="color: #00D7D7;">#pragma</span> ENDDUMP<br />&nbsp;</div>[/code:1x219rh1]
fallo en hb_xfree
Manuel, Al restarle a un puntero el valor del otro puntero, obtenemos su "distancia" en bytes ya que ambos "apuntaban" al mismo lugar originalmente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Y esa distancia (ó longitud) es precisamente el segundo parámetro (nLen) que espera hb_retclen()
fallo en hb_xfree
OK, como dijo aquel, "no te acostarás sin saber una cosa más" De cualquier modo no debería ser así: hb_retclen( cadena, cadena - pIndex );
fallo en hb_xfree
Manuel, pIndex se igualó a cadena al principio, y luego se va incrementando en pIndex++ luego pIndex es mayor que cadena, de aqui que hagamos pIndex - cadena <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
fallo en hb_xfree
<!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
fallo en hb_xfree
Muchas gracias Antonio. Además el código cuanto más breve mejor.
fallo en la insercion
Gente: a pesar que creo campos con valor por default al momento de insertar me bota error si hago asi [code=fw:1niavtkp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSQL := <span style="color: #ff0000;">" insert into #ppru "</span><br />cSQL += <span style="color: #ff0000;">"values('123456','T25CD',,,20.4444,120.00,,,'01','T25CD')"</span><br /> </div>[/code:1niavtkp] pero si le paso valores a todos los campos inclusive a los campos con valor por defecto, no tengo falla de insercion [code=fw:1niavtkp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    cSQL := <span style="color: #ff0000;">" insert into #ppru "</span><br />    cSQL += <span style="color: #ff0000;">"values('123456','T25CD',0,0,20.4444,120.00,0,0,'01','T25CD')"</span><br /> </div>[/code:1niavtkp] Asi trabaja ADO o es que estoy haciendo algo mal? [code=fw:1niavtkp]<div class="fw" id="{CB}" style="font-family: monospace;"><br />    cSQL := <span style="color: #ff0000;">"CREATE TABLE #ppru"</span><br />    cSQL += <span style="color: #ff0000;">"("</span><br />    cSQL += <span style="color: #ff0000;">"numero CHAR(6) NOT NULL, "</span><br />    cSQL += <span style="color: #ff0000;">"articu VARCHAR(10) NOT NULL, "</span><br />    cSQL += <span style="color: #ff0000;">"cantid int DEFAULT 0, "</span><br />    cSQL += <span style="color: #ff0000;">"mts INT DEFAULT 0,"</span><br />    cSQL += <span style="color: #ff0000;">"precio NUMERIC(12,4),"</span><br />    cSQL += <span style="color: #ff0000;">"total NUMERIC(10,2),"</span><br />    cSQL += <span style="color: #ff0000;">"unid int DEFAULT 0,"</span><br />    cSQL += <span style="color: #ff0000;">"stock int DEFAULT 0,"</span><br />    cSQL += <span style="color: #ff0000;">"codusu char(6) NOT NULL,"</span><br />    cSQL += <span style="color: #ff0000;">"subart varchar(10) "</span><br />    cSQL += <span style="color: #ff0000;">")"</span><br /><br />    <span style="color: #00C800;">Try</span><br />        oCon:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> cSQL <span style="color: #000000;">&#41;</span><br />    Catch<br />        <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Table Create ppru Failed"</span> <span style="color: #000000;">&#41;</span><br />    End <span style="color: #00C800;">try</span><br /><br />    cSQL := <span style="color: #ff0000;">" insert into #ppru "</span><br />    <span style="color: #B900B9;">//cSQL += "values('123456','T25CD',,,20.4444,120.00,,,'01','T25CD')"      ===> consigo error en la insercion</span><br />    cSQL += <span style="color: #ff0000;">"values('123456','T25CD',0,0,20.4444,120.00,0,0,'01','T25CD')"</span>   ===> <span style="color: #0000ff;">sin</span> error<br /><br />    <span style="color: #00C800;">Try</span><br />        oCon:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span> cSQL <span style="color: #000000;">&#41;</span><br />    Catch<br />        <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"Fallo en la insercion"</span> <span style="color: #000000;">&#41;</span><br />    End <span style="color: #00C800;">try</span><br /> </div>[/code:1niavtkp]
fallo en la insercion
Indicale que campos queres llenar con los valores. [code=fw:1z95fii0]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cSQL := <span style="color: #ff0000;">" insert into #ppru (numero,articu,precio,total,codusu,subart) "</span><br />cSQL += <span style="color: #ff0000;">"values('123456','T25CD',20.4444,120.00,'01','T25CD')"</span><br />&nbsp;</div>[/code:1z95fii0]
fallo en la insercion
Gracias Cesar no recordaba que podía hacerlo de esa forma
fallo en la insercion
You can also write [code=fw:3fh6zyth]<div class="fw" id="{CB}" style="font-family: monospace;"> &nbsp; cSQL += <span style="color: #ff0000;">"values('123456','T25CD',DEFAULT,DEFAULT,20.4444,120.00,DEFAULT,DEFAULT,'01','T25CD')"</span><br />&nbsp;</div>[/code:3fh6zyth]
fallo en la insercion
Thank Mr. Rao ! i'll try that alternative
fallo en la insercion
artu01: La opciones que te han sugerido por supuesto funcionan aunque tienen un pequeño inconveniente, puedes perder la relación entre el nombre de un campo y su correspondiente valor, una opción que puede ayudar es esta: [code=fw:3v8lsfp7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />            cCmdSql := <span style="color: #ff0000;">"INSERT INTO "</span> +;<br />                                <span style="color: #ff0000;">"AppSap.DetNdc "</span> +;<br />                            <span style="color: #ff0000;">"SET "</span> +;<br />                                <span style="color: #ff0000;">"DET_SER = '"</span> + oRsFil:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DET_SER"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> + <span style="color: #ff0000;">"',"</span> +;<br />                                <span style="color: #ff0000;">"DET_NDC = "</span> + STR<span style="color: #000000;">&#40;</span>oRsFil:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DET_NDC"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">07</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">","</span> +;<br />                                <span style="color: #ff0000;">"DET_CTD = "</span> + STR<span style="color: #000000;">&#40;</span>oRsFil:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DET_CTD"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">09</span>,<span style="color: #000000;">3</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">","</span> +;<br />                                <span style="color: #ff0000;">"DET_UDM = '"</span> + oRsFil:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DET_UDM"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span> + <span style="color: #ff0000;">"',"</span> +;<br />                                <span style="color: #ff0000;">"DET_POR = "</span> + STR<span style="color: #000000;">&#40;</span>IIF<span style="color: #000000;">&#40;</span>oRsFil:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DET_POR"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>,<span style="color: #000000;">1</span>,<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">","</span> +;<br />                                <span style="color: #ff0000;">"DET_DES = '"</span> + cDes + <span style="color: #ff0000;">"',"</span> +;<br />                                <span style="color: #ff0000;">"DET_PUN = "</span> + STR<span style="color: #000000;">&#40;</span>oRsFil:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DET_PUN"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">","</span> +;<br />                                <span style="color: #ff0000;">"DET_IMP = "</span> + STR<span style="color: #000000;">&#40;</span>oRsFil:<span style="color: #000000;">Fields</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"DET_IMP"</span><span style="color: #000000;">&#41;</span>:<span style="color: #000000;">Value</span>,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><br />            <span style="color: #00C800;">TRY</span><br />                oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">Execute</span><span style="color: #000000;">&#40;</span>cCmdSql<span style="color: #000000;">&#41;</span><br />            CATCH oError<br />                <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"No pude ejecutar el comando "</span> + cCmdSql,oApp:<span style="color: #000000;">cAplicacion</span><span style="color: #000000;">&#41;</span><br />                oApp:<span style="color: #000000;">oCon</span>:<span style="color: #000000;">ShowError</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />            END<br /> </div>[/code:3v8lsfp7] Saludos
fallo en la insercion
Muchas gracias armando por tu ayuda!
falta msgnoyes ?
Ante todo dar las gracias a Antonio por la rápida aclaración de mis dudas . en el programa que estoy creando , pretendo usar la funcion msgnoyes , y me encuentro que no existe , no así la funcion msgyesno que funciona bien , creo que sería trivial incluirla . Saludos.
falta msgnoyes ?
Incluida <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> En el próximo build que publiquemos ya estará disponible.
fancies class
ho trovato un errore nella classe TRFANDLG iLink32.Exe -Gn -aa -Tpe -s @TESTFANC.bcl Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_HB_FUN_RELEASECAP' referenced from C:\WORK\LIB_32\FANCIES\OBJ\TRFANDLG.OBJ dove posso trovare questa funzione RELEASECAP ?
fancies class
Prova a sostituire nella classe (che comunque non fa parte delle FWH) ReleaseCap() con ReleaseCapture(). EMG
fancies class
grazie ma adesso fi fa un altro errore strano [code:zrqp5s0p]Application =========== Path and name&#58; C&#58;\Work\LIB_32\FANCIES\TESTFANC&#46;Exe &#40;32 bits&#41; Size&#58; 443,392 bytes Time from start&#58; 0 hours 0 mins 0 secs Error occurred at&#58; 08/01/03, 04&#58;52&#58;50 Error description&#58; Error BASE/1004 Class&#58; 'NIL' has no exported method&#58; ACONTROLS Args&#58; Stack Calls =========== Called from&#58; => ACONTROLS&#40;0&#41; Called from&#58; TRFANDLG&#46;PRG => DLGCNTRTRANSP&#40;66&#41;[/code:zrqp5s0p]
fancies class
cmq ho chiesto all'autore sperando che mi risponda
fancies class
è come inviare email al muro : Paco non esiste cesada non esiste mi arrendo...
fast report 4
Hi I have FastReport 4 Enterprise Edition 4.6 but I dont know how to start also i dont find the report designes Is it possible to use this FR with fwh? Can you help me please
fast report 4
Gente, tengo FastReport 4 Enterprise Edition 4.6 pero estoy perdido, no se por donde empezar No encuentro el diseñador de reportes en la carpeta que instale Puedo usar este producto con FWH?
fast report 4
Artu01: Creo que puedes empezar por devorarte este link <!-- s:oops: --><img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarassed" /><!-- s:oops: --> <!-- m --><a class="postlink" href="http://objetopersistente.blogspot.mx/2009/05/fastreport-desde-rusia-con-amor-para.html">http://objetopersistente.blogspot.mx/20 ... -para.html</a><!-- m --> Seguido, hay dos manuales disponibles, aunque en inglés, Manual del usuario y Manual del desarrollador. Saludos
fast report 4
Frh is fast report 4 for fwh version, The author Spirin Sergey left the world in 2012. Frh provide a class prg as wrap of fast report 4 , and call designer easily as FrPrn:designReport() . Shuming Wang
fastedit
Thought I read somewhere there was a way to get fastedit to move down the edit field rather then move to the field on the left for the next edit. Any help would be great. Want to edit down a column then move to the next column.ThanksHarvey
fastedit
When oBrw:lFastEdit is set to true, the cursor movement behaviour is like this:When edit of a cell is exited with Enter key, the cursor goes to the next editable cell to the right in the same row. If there is no editable cell to the right in the same row, the cursor goes to the next row first editable cell.If the edit is exited with down arrow, the cusror goes to the same column in the next row.If the edit is exited with up arrow, the cursor goes to the same column in the previous row.If there is only one editable column in the browse, if the edit is exited either by enter key or down arrow ( in both cases ) the cursor goes to the same column of next row.This behavior is explained in the whatsnew.txt
fastedit
adjusted the xbrowse.prg to not move to the right and its working fine.Thanks Rao.
fastreport + harbour + bcc7
Hola. Por que sera que al pasar a harbour y bcc 7 me dejó de andar el Fastreport? le pasó a alguien? recompile todo..no me da error solo no lo abre sldos Silvina
fastreport + harbour + bcc7
Ponga un MsgWait( "Informacion..." ) tal vez... ó algo en la FAST no és compatible con Harbour. Saludos.
fastreport + harbour + bcc7
Karinha, Debe seguir funcionando sin problemas con Harbour o xHarbour, asegurate de compilar FastreportH.prg dentro del proyecto. Saludos,
fastreport + harbour + bcc7
Hola. A mi me funciona y tengo bcc7 con harbour con windows 10 de 64 bit sin problema si gustas escribame al email y vemos en detalle
fastreport + harbour + bcc7
HOLA no se que tiene, sigo sin solucionarlo, apenas va a hacer el New se cierra el programa no da ningún error de ningún tipo, solo se cierra [quote="ruben Dario":3tnyixhn]Hola. A mi me funciona y tengo bcc7 con harbour con windows 10 de 64 bit sin problema si gustas escribame al email y vemos en detalle[/quote:3tnyixhn]
fastreport + harbour + bcc7
Si, lo tengo en una lib, lo recompile con bcc7 ,y lo linko con el proyecto.. no se que pasa...<!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> [quote="nnicanor":2ophzfav]Karinha, Debe seguir funcionando sin problemas con Harbour o xHarbour, asegurate de compilar FastreportH.prg dentro del proyecto. Saludos,[/quote:2ophzfav]
fastreport + harbour + bcc7
gracias x las respuestas, tenía desactualizada la dll del fastreport sldos
fastreport 2 records in a page
Hi, I have a dbf with 1200 records and I want to print 2 invoices per page, how I can do this in report design? Thanks.
fastreport 2 records in a page
Hola, easy, extend the MasterData band to take half of the page regards Marcelo Vía
fastreport 2 records in a page
[quote="Marcelo Via Giglio":uhm1ldux]Hola, easy, extend the MasterData band to take half of the page regards Marcelo Vía[/quote:uhm1ldux] Thanks Marcelo but the each record in masterdata has a detail data like a invoice with many items.
fastreport 2 records in a page
Ok, this means that you need a detaildata band too, then you need define "Number of records" for this band when you select the DataSet for the band regards Marcelo Vía
fastreport pages
Hi, How i can disable a page in report depending a value of xharbour variable like this: If imp2 = "N" report.page2:disable() Endif Thanks.
fastreport pages
Pascal Script [code=fw:3fcr064o]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> imp2 = <span style="color: #ff0000;">'N'</span> then <br />&nbsp; &nbsp;page2.visible = <span style="color: #00C800;">false</span>;<br /><br /> </div>[/code:3fcr064o]
fastreport pages
[quote="RenOmaS":1hxy5v86]Pascal Script [code=fw:1hxy5v86]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">if</span> imp2 = <span style="color: #ff0000;">'N'</span> then <br />   page2.visible = <span style="color: #00C800;">false</span>;<br /><br /> </div>[/code:1hxy5v86][/quote:1hxy5v86] Thank you!