topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
Comenzar aplicacion | Julio,Solicita descargar la versión demo de FiveWin desde <!-- w --><a class="postlink" href="http://www.fivetechsoft.com">www.fivetechsoft.com</a><!-- w --> y se te entrega el código fuente de dos aplicaciones de gestión completas! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Comenzar con Harbour - Ayuda | Buenas noches,
Debido a que al pasarme desde FWH 1004 a la 1302 mi aplicación está presentando distintos errores, quisiera intentar, basándome en un consejo de Antonio, el compilar con HARBOUR ya que hasta el momento vengo haciendolo con xHarbour.
Por esto pido una ayuda a quienes lo están usando, una pequeña guía de como hacerlo, de donde bajar Harbour, etc.
Gracias.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Comenzar con Harbour - Ayuda | Rolando,
Puedes descargar la versión más reciente desde aqui:
[url:1rgq6qbm]https://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=harbour_bcc582_20130617.zip[/url:1rgq6qbm]
Si revisas el fichero buildh.bat que esta en FWH samples, verás las librerias que tienes que enlazar, Es muy facil <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Comenzar con Harbour - Ayuda | Antonio,
Gracias por responder.
Una más, ¿hay algún sitio con manual disponible como con xHarbour o las funciones y comandos son los mismos?
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Comenzar con Harbour - Ayuda | [url:p3v4q0p5]http://www.fivetechsoft.com/harbour-docs/harbour.html[/url:p3v4q0p5]
[url:p3v4q0p5]http://www.marinas-gui.org/projects/harbour_manual[/url:p3v4q0p5]
[url:p3v4q0p5]http://www.elektrosoft.it/tutorials/Harbour-Reference-Guide/harbour-reference-guide.htm[/url:p3v4q0p5]
[url:p3v4q0p5]http://harbourlanguage.blogspot.com/2010/04/harbour-multi-thread.html[/url:p3v4q0p5]
[url:p3v4q0p5]http://www.harbour-project.org[/url:p3v4q0p5] |
Comenzar con Harbour - Ayuda | Pablo,
Gracias.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Comenzar con Harbour - Ayuda | Buenas noches,
Sigo en el intento de pasarme a HARBOUR.
Estuve viendo en el link del foro: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=143698#p142694">viewtopic.php?p=143698#p142694</a><!-- l --> pero en <!-- m --><a class="postlink" href="http://windows.github.com/">http://windows.github.com/</a><!-- m --> no encontré una aplicación para descargar y actualizar, lo que encontré para bajar, al instalarlo me pide usuario y contraseña para usarlo y aparentemente es de pago.
Busqué en la web y encontré el “Git GUI” que al instalarlo me permitió clonar el servidor con lo indicado en el post por Antonio:
“git clone <!-- m --><a class="postlink" href="https://github.com/harbour/core.git">https://github.com/harbour/core.git</a><!-- m --> harbour”.
Esto me creó, dentro de mi carpeta Harbour, una serie de carpetas a partir de una nombrada “core”.
Luego de ello, seguí con lo indicado en el post:
set path=c:\bcc582\bin
win-make.exe
Pero lamentablemente no genera las libs, comienza el proceso pero antes de terminar indica el error que se ve en la imagen adjunta.
[url=http://imageshack.us/photo/my-images/841/w861.jpg/:12y69x8h][img:12y69x8h]http://img841.imageshack.us/img841/2433/w861.jpg[/img:12y69x8h][/url:12y69x8h]
Alguna ayuda?, Gracias.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Comenzar con Harbour - Ayuda | Rolando,
Tienes que reemplazar la librería unicows.lib de Borland con esta que se proporciona con Harbour:
[url:vnqd822p]https://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=unicows.lib[/url:vnqd822p] |
Comenzar con Harbour - Ayuda | Antonio,
Gracias por responder.
Reemplacé la lib que indicas pero lamentablemente sigue mostrando el mismo error.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Comenzar con Harbour - Ayuda | Rolando,
Tienes que rehacer el proceso desde el inicio ó no funcionará. Borra todo, descarga, reemplaza la lib y construye. |
Comenzar con Harbour - Ayuda | Antonio,
De nuevo, gracias.
Cuando vi tu post, ya había iniciado todo de nuevo y, tardó un rato largo (estoy en una pc viejita con win xp 32 bit).
[b:2za6ab5c][color=#0000FF:2za6ab5c]Pero ya logré crear las libs.[/color:2za6ab5c][/b:2za6ab5c]
Ahora seguramente vendrán otros inconvenientes cuando comience a usarlas, jeje.
Comento de donde bajé el git para usar. Fue en esta web que encontré el enlace: [url:2za6ab5c]http://rogerdudler.github.io/git-guide/index.es.html[/url:2za6ab5c]
Y el enlace directo para bajarlo es: [url:2za6ab5c]https://code.google.com/p/msysgit/downloads/list?can=3[/url:2za6ab5c]
Saludos.
Rolando <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
Comenzar con SQL | Hola,
Estoy comenzando a probar SQL para ir abandonando el uso de DBF's.
Para realizar pruebas tengo instalado un servidor mysql en una raspberry.
Pero no se por donde empezar ADORDDD, Tdolphin ....
¿Alguna sugerencia? |
Comenzar con SQL | Te aconsejo
TDolphin En el foro hay bastante ayuda.
Saludos,
Adhemar |
Comenzar con SQL | Hola,
Mi kit incluye:
Xampp
TDolphin
HeidiSql
Aconsejable tambien MySql Workbench.
Espero te sirva |
Comenzar con SQL | gracias |
Comenzar con SQL | Google translator:
Si desea convertir las aplicaciones que utilizan DBF to SQL:
ADS
SQLRDD
ADORDD
ADORDD es el que garantiza el 100% de compatibilidad con el código de su aplicación.
No es necesario cambiar una sola línea de código y DBF desde cargado a SQL en cuestión de minutos.
Usando RDD puede cambiar fácilmente entre RDDS
ADORDD Soporta todos los principales motores de bases de datos con el mismo código.
ADORDD funciona como cualquier otro RDD pero también se puede utilizar SQL o ambos. No hay límites.
La principal imitación d ADORDD es que sólo funciona en Windows, ya que requiere MS ADO.
Todas las demás soluciones son muy buenas, pero significa que cambian por completo el código de su apicação que a menudo es imposible.
Puede comprobar el FAQ ADORDD el foro en Inglés. |
Comenzar con SQL | Un consejo de un conejo...
Lo mejor para trabajar com MySQL, es utilizar los comandos directamente, para ello yo vengo utilizando con mucho éxito TDolphin,,, una maravillosa clase escrita por Daniel,,
las DBFs las deje hace 10 años atrás, empecé con Eagle1, pero luego pase a TDolphin y no la suelto,,, un ventaja es que se conecta directamente al servidos (Windows o Linux) y es rápido,,, Utilizo FW + TDolphin + PellesC + Meditor + MySQL 5.5/6.0 o MariaDB tanto para Windows o Linux,,,
Como ejemplo te muestro estas líneas para obtener datos..
[code=fw:21qfamms]<div class="fw" id="{CB}" style="font-family: monospace;"><br />cBusca := <span style="color: #ff0000;">"SELECT "</span><br />cBusca += <span style="color: #ff0000;">"productos.registro, "</span> <span style="color: #B900B9;">// 1</span><br />cBusca += <span style="color: #ff0000;">"productos.cod_producto, "</span> <span style="color: #B900B9;">// 2</span><br />cBusca += <span style="color: #ff0000;">"productos.producto, "</span> <span style="color: #B900B9;">// 3</span><br />cBusca += <span style="color: #ff0000;">"productos.unidad, "</span> <span style="color: #B900B9;">// 4</span><br />cBusca += <span style="color: #ff0000;">"productos.codbar1, "</span> <span style="color: #B900B9;">// 5</span><br />cBusca += <span style="color: #ff0000;">"productos.cod_proveedor, "</span> <span style="color: #B900B9;">// 6</span><br />cBusca += <span style="color: #ff0000;">"productos.cod_marca, "</span> <span style="color: #B900B9;">// 7</span><br />cBusca += <span style="color: #ff0000;">"productos.cod_grupo, "</span> <span style="color: #B900B9;">// 8</span><br />cBusca += <span style="color: #ff0000;">"productos.puntos, "</span> <span style="color: #B900B9;">// 9</span><br />cBusca += <span style="color: #ff0000;">"proveedor.razon_social, "</span> <span style="color: #B900B9;">// 10</span><br />cBusca += <span style="color: #ff0000;">"marca.detalle AS cmarca, "</span> <span style="color: #B900B9;">// 11</span><br />cBusca += <span style="color: #ff0000;">"grupo.detalle AS cgrupo, "</span> <span style="color: #B900B9;">// 12</span><br />cBusca += <span style="color: #ff0000;">"productos.percepcion, "</span> <span style="color: #B900B9;">// 13</span><br />cBusca += <span style="color: #ff0000;">"productos.impuesto_p, "</span> <span style="color: #B900B9;">// 14</span><br />cBusca += <span style="color: #ff0000;">"productos.observaciones, "</span> <span style="color: #B900B9;">// 15</span><br />cBusca += <span style="color: #ff0000;">"IFNULL((SELECT registro FROM imagenes WHERE imagenes.cod_producto = productos.cod_producto),0) AS imagen "</span> <span style="color: #B900B9;">// 16</span><br />cBusca += <span style="color: #ff0000;">"FROM productos "</span><br />cBusca += <span style="color: #ff0000;">"LEFT JOIN proveedor ON productos.cod_proveedor = proveedor.ruc_dni "</span><br />cBusca += <span style="color: #ff0000;">"LEFT JOIN marca ON productos.cod_marca = marca.codigo "</span><br />cBusca += <span style="color: #ff0000;">"LEFT JOIN grupo ON productos.cod_grupo = grupo.codigo "</span><br /><br /><span style="color: #00C800;">IF</span> !EMPTY<span style="color: #000000;">(</span>cProve<span style="color: #000000;">)</span> .OR. !EMPTY<span style="color: #000000;">(</span>cMarca<span style="color: #000000;">)</span> .OR. !EMPTY<span style="color: #000000;">(</span>cGrupo<span style="color: #000000;">)</span><br /> cBusca += <span style="color: #ff0000;">"WHERE "</span><br /><span style="color: #00C800;">EndIf</span><br /><br />cBusca += <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>!EMPTY<span style="color: #000000;">(</span>cProve<span style="color: #000000;">)</span>, <span style="color: #ff0000;">"productos.cod_proveedor = '"</span> + cProve + <span style="color: #ff0000;">"' "</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> !EMPTY<span style="color: #000000;">(</span>cProve<span style="color: #000000;">)</span> .AND. !EMPTY<span style="color: #000000;">(</span>cMarca<span style="color: #000000;">)</span><br /> cBusca += <span style="color: #ff0000;">" AND "</span><br /><span style="color: #00C800;">EndIf</span><br />cBusca += <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>!EMPTY<span style="color: #000000;">(</span>cMarca<span style="color: #000000;">)</span>, <span style="color: #ff0000;">"productos.cod_marca = '"</span> + cMarca + <span style="color: #ff0000;">"' "</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">If</span> !EMPTY<span style="color: #000000;">(</span>cMarca<span style="color: #000000;">)</span> .AND. !EMPTY<span style="color: #000000;">(</span>cGrupo<span style="color: #000000;">)</span><br /> cBusca += <span style="color: #ff0000;">" AND "</span><br /><span style="color: #00C800;">EndIf</span><br />cBusca += <span style="color: #00C800;">IF</span><span style="color: #000000;">(</span>!EMPTY<span style="color: #000000;">(</span>cGrupo<span style="color: #000000;">)</span>, <span style="color: #ff0000;">"productos.cod_grupo = '"</span> + cGrupo + <span style="color: #ff0000;">"' "</span>, <span style="color: #ff0000;">""</span><span style="color: #000000;">)</span><br /><br />cBusca += <span style="color: #ff0000;">"GROUP BY productos.cod_producto "</span> <span style="color: #B900B9;">// importante para que no se dispare el join</span><br /><br /><span style="color: #00C800;">If</span> nOrden = <span style="color: #000000;">1</span><br /> cBusca += <span style="color: #ff0000;">"ORDER BY productos.producto "</span><br /> ElseIF nOrden = <span style="color: #000000;">2</span><br /> cBusca += <span style="color: #ff0000;">"ORDER BY productos.utilidad_p "</span><br /> ElseIF nOrden = <span style="color: #000000;">3</span><br /> cBusca += <span style="color: #ff0000;">"ORDER BY productos.puntos "</span><br /><span style="color: #00C800;">EndIf</span><br /><br />oProduc := SQLQry<span style="color: #000000;">(</span>oMySQL, oProduc, cBusca<span style="color: #000000;">)</span> <span style="color: #B900B9;">// la información "mezclada" de 5 tablas en un objeto de datos</span><br />aProduc := SQLQryA<span style="color: #000000;">(</span>oMySQL, aProduc, cBusca<span style="color: #000000;">)</span> <span style="color: #B900B9;">// los mismos datos en un array</span><br /><br /> </div>[/code:21qfamms] |
Comenzar con mod_harbour... | Hola Antonio y equipo!!
No pude seguir desde el comienzo el proyecto, pero siempre estuve leyendo las news.
Estoy con algún tiempo como para realizar algunas pruebas... pero hete aquí que no sé por donde comenzar... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: -->
Serías o serían tan amables de comentarme por donde podría ir comenzando a ver la luz
con esta herramienta??
Muchísimas gracias!!
Roberto |
Comenzar con mod_harbour... | Roberto,
Comienza revisando los ejemplos <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
[url:1a3p0spe]https://www.modharbour.org/modharbour_samples/[/url:1a3p0spe] |
Comenzar con mod_harbour... | Gracias Antonio!!
Cual debería ser el primero?? Para comenzar??
Gracias! |
Comenzar con mod_harbour... | [url:26ssxd4k]https://www.modharbour.org/modharbour_samples/test.prg[/url:26ssxd4k]
[url:26ssxd4k]https://github.com/FiveTechSoft/mod_harbour/blob/master/samples/test.prg[/url:26ssxd4k] |
Comenzar con tDolphin | Hola amigos del foro:
He leido sobre tDolphin y deseo empezar con su utilizacion pero no he encontrado la forma de iniciar con el. He entrado en la pagina desde donde se descarga pero no he conseguido ningun avance.
Agradeceria mucho si alguien me orienta paso a paso de como debo hacer.
Gracias y saludos a todos |
Comenzar con tDolphin | Hola Jose
primero descargas del SVN todo el codigo fuente, aqui te explica como
[url:15phhc3y]http://tdolphin.blogspot.com/2010/06/comanzando-starting.html[/url:15phhc3y]
aqui te explica como construir la libreria: [url:15phhc3y]http://tdolphin.blogspot.com/2010/11/construir-lib-ejemplos-build-lib.html[/url:15phhc3y]
solo tienes que configurar el entorno de trabajo que usaras, cambiando los patrh necesarios, busca los script de configuracion en el directorio raiz del proyecto
puedes construirla para harbour/xharbour windows/linux/mac borland/mingw/msvc 32/64 bits |
Comenzar con tDolphin | Gracias Daniel voy a empezar ahora mismo |
Comenzar con tDolphin | Hola Daniel, el ultimo enlace que proporcionaste esta roto... |
Comenzar con tDolphin | Disculpa
enlace correjido |
Comenzar con tDolphin | Gracias Daniel, ahora si |
Comercialización software | Compañeros,
He terminado un software y soy el propietario del copyrigth íntegramente. Le he propuesto a una empresa comercializarlo y han aceptado. Firmaré con ellos un contrato de cesión de propiedad intelectual para que ellos puedan comercializarlo, cobrarlo y dar soporte informático. A cambio, yo les facturaré una comisión por cada venta que realicen.
El programa, en FWH-xHarbour, una vez instalado, me remite mensualmente un email "silencioso" de seguimiento. De esta manera puedo conocer cuantos se han instalados y su difusión.
Para mayor control por mi parte, les he propuesto que creen una nueva cuenta bancaria donde se hagan los ingresos por las ventas y que yo tenga acceso a ella.
Yo, por falta de tiempo, no quiero prestar soporte y gestionar/comprobar los cobros, para eso firmaré contrato con la empresa que son más profesionales y tiene linea telefónica 900/902.
¿Veis bien este modelo que les he planteado? ¿Cómo lo plantearíais vosotros?
Mil gracias.
LORENZO, desde Cádiz, España. |
Comercialización software | Lorenzo, buen dia
Yo lo hago con una "clave de activacion" y/o "archivo de activacion" mismo Window, office, Total Commander, Etc., por lo menos con eso me aseguro que no se instale ninguno sin mi autorizacion, claro salvo que "rompan" el seguro, pero de vez en cuando cambio el algoritmo de generacion del codigo de activacion. |
Comercialización software | Hola Lorenzo:
Yo tambien uso un metodo similar al de Enrique.
Se puede bajas mis programas desde [url:1j1k9eea]http://www.sauro-sys.com[/url:1j1k9eea] y despues de 2 o 3 meses se corta y solo queda activarlo.
Acerca del [b:1j1k9eea]email "silencioso"[/b:1j1k9eea], siempre se puede hacer que el FIREWALL o antivirus de la computadora lo bloqueen y no recibirias el correo.
Ademas creo que hay una ley que prohibe hacer este tipo de cosas; tu programa podria parecer un programa espia. Los antivirus podrian detectarlo, conciderarlo como espia y bloquearlo.
Atentamente,
Rolando.
Cochabamba, Bolivia |
Comercialización software | Enrrique, Rolando.
Podrian compartir la forma como lo hacen ?
Gracias. |
Comercialización software | En pasos en general son:
1. Una ves instalado el programa, habilitar un boton u opcion del menu que muestre un dialogo con un codigo UNICO para esa maquina
Al codigo Unico yo lo llamo CODIGO DE SITIO, y lo genero en base al numero de serie del disco duro de la maquina
2. Si el cliente esta de acuerdo en comprar el programa, entonces hace el pago y envia por correo el CODIGO DE SITIO
3. Ya teniendo el CODIGO DE SITO, y verificado el pago, se genera un CODIGO DE ACTIVACION
El CODIGO DE ACTIVACION lo genero en base al CODIGO DE SITIO ( el agoritmo es "SECRETO")
4. Envio el CODIGO DE ACTIVACION al cliente, tb por correo.
5. El cliente ingresa el CODIGO DE ACTIVACION en la ventana donde genero el CODIGO DE SITIO
6. El programa debe verificar si un CODIGO DE ACTIVACION (generado por el mismo en base al CODIGO DE SITIO de la maquina) coincide con el ingresado por el cliente
7. Si coincide, el programa esta ACTIVADO.
Espero les sirva
Atentamente,
Rolando
Cochabamba, Bolivia. |
Comercialización software | Amigos se debe recordar siempre que:
HECHA la LEY HECHA la TRAMPA.
Recien me entere que muchas persona estan usando mi programa sin violar las condiciones.
La forma de hacerlo es instalando el programa en una [b:9okpqxhs]maquina virtual[/b:9okpqxhs], pasado los 3 meses, cuando el programa deja de funcionar, ELIMINAN esa maquina virtual e instalan en otra nueva.
Es una molestia, claro que si..., pero bueno.
En este momento tengo mucho trabajo, pero ya tengo unas ideas que dasarrollare para que no puedan hacer el truco.
Atentamente,
Rolando
Cochabamba, Bolivia. |
Comercialización software | Un buen truco que puedes hacer es limitar la cantidad de registros en tu sistema, ya sea por modulos, individual por tabla o dbf o total en todo el sistema, asi ni que hagan lo que hagan, ya que esa validacion la harias en el .EXE, es una recomendacion, intenta haber y cuentanos si te sirvio, saludos... <!-- s:shock: --><img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked" /><!-- s:shock: --> |
Começando a Usar SQLRDD | AmigosEstou iniciando o Uso Com a SQLRDD, mas está dando um erro estranho Vejam [img:2kuun594]http://img68.imageshack.us/img68/4640/xdevyt1.jpg[/img:2kuun594][img:2kuun594]http://img140.imageshack.us/img140/5640/errosairzg3.jpg[/img:2kuun594][url] <!-- m --><a class="postlink" href="http://www.fivewin.com.br/forum/topic.asp?TOPIC_ID=13463">http://www.fivewin.com.br/forum/topic.a ... C_ID=13463</a><!-- m -->[/url]Obrigado a TodosSerá que está Faltando Alguma LIB, ETC.... |
Comienzo | Un Saludo a todos,
Voy a comenzar a recorrer este camino que nos ha abierto Antonio.
He visto que hay tutoriales y manuales.
Quería pedir la opinión de por donde empezar para hacerme con el tema lo mejor posible.
Gracias |
Comienzo | Para desarrollar en Windows 10 64 bits lo primero es instalar Apache:
[url:2s2d84i8]https://www.apachehaus.com/cgi-bin/download.plx?dli=ldlTwI2QNVjT6p0KaVUOYBlVOpkVFVFdihFZWdVQ[/url:2s2d84i8]
Una vez descargado el fichero ZIP, copia el contenido de la carpeta Apache24 a c:\Apache24
Finalmente ejecuta c:\Apache24\bin\httpd.exe y desde el navegador de internet ve a "localhost"
Debes ver la pantalla de bienvenida de Apache <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Con esto ya tendrias Apache instalado y funcionando. A continuación vamos a ver como se instala mod_harbour |
Comienzo | Descarga mod_harbour.so desde aqui:
[url:297iiv9w]https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win64/mod_harbour.so[/url:297iiv9w]
y cópialo en c:\Apache24\modules
Descarga libharbour.dll desde aqui:
[url:297iiv9w]https://github.com/FiveTechSoft/mod_harbour/blob/master/windows/win64/libharbour.dll[/url:297iiv9w]
y cópiala en c:\Apache24\htdocs
Finalmente añade estas líneas al final de c:\Apache24\conf\httpd.conf
[code=fw:297iiv9w]<div class="fw" id="{CB}" style="font-family: monospace;">LoadModule harbour_module modules/mod_harbour.so<br /><br /><FilesMatch <span style="color: #ff0000;">"<span style="color: #000000;">\.</span>(prg|hrb)$"</span>><br /> SetHandler harbour<br /></FilesMatch></div>[/code:297iiv9w]
Reinicia httpd.exe. Ahora copia los ejemplos de la carpeta samples de mod_harbour ([url:297iiv9w]https://github.com/FiveTechSoft/mod_harbour/tree/master/samples[/url:297iiv9w]) a la carpeta c:\Apache24\htdocs y desde el navegador ve a localhost\test.prg
Si todo ha ido bien verás como test.prg se ejecuta en tu navegador <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Comienzo | Muchas gracias Antonio. |
Comienzo | Prezado Antonio, boa noite!
Começando com o Mod_Harbour, segui os passos que você postou acima e estou recebendo a seguinte mensagem de erro:
mod_harbour version May 25 2020, 09:52:00
c:\Apache24\htdocs\libharbour.dll
Não foi possível encontrar o módulo especificado.
failed to load hb_apache()
Onde posso ter errado?
Att.,
Oliveiros Junior |
Comienzo | Buenas
Debes copiar las dll que se encuentran en <\mod_harbour-master\windows\win64\required>
libcrypto-1_1-x64.dll
libcurl-x64.dll
libssl-1_1-x64.dll
en la carpeta c:\apache24\bin |
Comienzo | Boa noite!
Obrigado. Funcionou.
Att.,
Oliveiros Junior |
Comm Port Settings | Hi Everybody,I have a small problem with setting up my comm port....I use a USB to Serial adapter and connect to a medical device to read its data and all works fine if I use comm ports 1 to 9.If I try to use a higher comm port (10+) I get a SetCommState error.[code:3gsordlz]
nComm:= OpenComm( "Com"+alltrim(str(Config->Comm)), 1024, 128 )
if ! BuildCommDcb( "COM"+alltrim(str(Config->Comm))+":9600,n,8,1", @cDcb )
MsgInfo("BuildComm Error")
oDlg1:End()
lError := .t.
RETURN NIL
endif
if ! SetCommState( nComm, cDcb )
MsgInfo("SetComm Error")
oDlg1:End()
lError := .t.
RETURN NIL
endif
if FlushComm( nComm, 1 ) != 0
MsgInfo("FlushComm Error")
oDlg1:End()
lError := .t.
RETURN NIL
endif
[/code:3gsordlz]Anyone know why this is happening? |
Comm Port Settings | Jeff,Please do a MsgInfo( nComm ) just to check what value you get when you use a port higher than 10, thanks |
Comm Port Settings | Antonio,I get: 44466720 (Comm set to 11) |
Comm Port Settings | Jeff,Please do this call:MsgInfo( GetLastError() ) after the error to know what error reports Windows, thanks |
Comm Port Settings | Antonio,The last error is: 6 |
Comm Port Settings | Jeff,It means "invalid handle". Maybe there is a sign issue.Lets review the source code for OpenComm() |
Comm Port Settings | Jeff,Please define this function in your PRG and use this one instead of OpenComm():[code:3rjcjyid]
#pragma BEGINDUMP
#include <hbapi.>
#include <windows.h>
unsigned long OpenComm( char *, WORD, WORD );
HB_FUNC( MYOPENCOMM )
{
WORD cbInQueue = IF( ISNUM( 2 ), hb_parni( 2 ), 1024 );
WORD cbOutQueue = IF( ISNUM( 3 ), hb_parni( 3 ), 128 );
hb_retnl( ( unsigned long ) OpenComm( hb_parc( 1 ), cbInQueue, cbOutQueue ) );
}
#pragma ENDDUMP
[/code:3rjcjyid] |
Comm Port Settings | Hi Antonio,Sorry for the delay in getting back to you on this one ... I have been very busy the past few weeks <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->I tried adding the code and get the following error at compile:[quote:2qq7vn0q]
EzSat.c:
Warning W8065 ezsat.prg 18910: Call to function 'IF' with no prototype in function HB_FUN_MYOPENCOMM
Warning W8065 ezsat.prg 18911: Call to function 'IF' with no prototype in function HB_FUN_MYOPENCOMM
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_IF' referenced from C:\EZSAT\EZSAT.OBJ
[/quote:2qq7vn0q] |
Comm Port Settings | Jeff,Please add this define just below the last #include:#define IF(x,y,z) ( (x) ? (y) : (z) ) |
Comm port init | Antonio,
It's possible in FWPPC initiate comm port eg. baud=9600, parity=e, data=8, stop=1 before send data to port ?
Thanks
Pawel |
Comm port init | Pawel,
You have to use the Windows API SetCommState() function. |
Comm port init | [quote="Antonio Linares":1d74a39a]Pawel,
You have to use the Windows API SetCommState() function.[/quote:1d74a39a]
Hello Antonio,
Could you please give us a small example on how to do it?
Where can I find doc on these functions?
Sorry for these basic questions but this is my first approach to Api and Dll calls.
Best regards, |
Comm port init | This is a sample:
[code:3aqj1k6i]
#include "FWCE.ch"
#define GENERIC_WRITE 0x40000000
#define OPEN_EXISTING 3
#define FILE_ATTRIBUTE_NORMAL 0x00000080
function Main()
local hComm := CreateFile( "COM1:",; // change the number as needed
GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
// baud=1200 parity=N data=8 stop=1
MsgInfo( SetComm( hComm, 1200, .f., 8, 1 ) )
CloseHandle( hComm )
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( SETCOMM )
{
DCB dcb;
GetCommState( ( HANDLE ) hb_parnl( 1 ), &dcb );
dcb.BaudRate = hb_parnl( 2 );
dcb.Parity = hb_parl( 3 );
dcb.ByteSize = hb_parnl( 4 );
dcb.StopBits = hb_parnl( 5 );
hb_retl( SetCommState( ( HANDLE ) hb_parnl( 1 ), &dcb ) );
}
#pragma ENDDUMP
[/code:3aqj1k6i] |
Comm port init | Many thanks Antonio,
I will try it tomorrow.
Best Regards |
Comm port init | Hi Antonio,
I tried it and it works like a charm <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
Many thanks again.
Raymond |
Comm port problem | I have a strange problem when reading from a comm port.
If I am starting with a fresh boo of the computer I can not read data from the comm port unless I first go into Windows HyperTerminal to read from the comm port. Then my program works just fine (until you reboot).
Below is a sample of the code I am using, can someone tell me what I am missing.
Thanks,
Jeff
***Open Comm Port
local cDcb, nBytes
local nComm := OpenComm( "Com"+alltrim(str(Config->Comm)), 1024, 128 )
if ! BuildCommDcb( "COM"+alltrim(str(Config->Comm))+":9600,n,8,1", @cDcb )
nError = GetCommError( nComm )
MsgInfo( "BuildCommDcb Error: " + Str( nError ) )
endif
if ! SetCommState( cDcb )
nError = GetCommError( nComm )
MsgInfo( "SetCommState Error: " + Str( nError ) )
endif
***Read Comm Port here
if ReadComm( nComm , @cDataRead) <> 0
**do my data storage here
endif
***Close Comm Port
if FlushComm( nComm, 0 ) != 0
nError = GetCommError( nComm )
MsgInfo( "FlushComm Error: " + Str( nError ) )
endif
if ! CloseComm( nComm )
nError = GetCommError( nComm )
MsgInfo( "CloseComm Error: " + Str( nError ) )
endif |
Comm port problem | Jeff,
I guess you are using FWH built in comm support functions.
You may try free hbcomm.lib for Harbour/xharbour to see if that makes a difference.
In the meantime, lets see if we can find whats going on. |
Comm port problem | Where can I get hbcomm.lib ???
Thanks |
Comm port problem | Jeff,
<!-- w --><a class="postlink" href="http://www.fivetechsoft.com/files/hbcomm.zip">www.fivetechsoft.com/files/hbcomm.zip</a><!-- w --> |
Comm support (synchronous) | A new FWPPC (FiveWin for Pocket PC) build is already available with comm support (synchronous). Functions descriptions are located at whatsnew.txt.
You may already download it. |
Comm with USB device | Can someone point me to a reference for using Comm communications with a USB port ? All samples of OpenComm are with Com1-4. Thanks. |
Comm with USB device | I'm putting this back up the list in case anyone has an answer. |
Comm with USB device | Tim
I use USB to RS232 bridge, so I still think like "normal com".
(PL-2303 USB to Serial Bridge Controller)
I guess it isn't answer for your question, but maybe is way to do it what you want:)
Regards
Robert
Function COM_OPEN(xPORT)
Local pNAME
Local nError,cDCB
Local xRESZTA:=.T.
Do Case
Case xPORT=1
pNAME:="COM1"
Case xPORT=2
pNAME:="COM2"
Case xPORT=3
pNAME:="COM3"
Case xPORT=4
pNAME:="COM4"
Case xPORT=5
pNAME:="COM5"
Case xPORT=6
pNAME:="COM6"
Case xPORT=7
pNAME:="COM7"
Case xPORT=8
pNAME:="COM8"
Case xPORT=9
pNAME:="COM9"
EndCase
hPORT:= OpenComm( pNAME, 2048, 2048 )
If ! BuildCommDcb( pNAME+cSPEED, @cDcb )
nError = GetCommError( hPORT )
MsgInfo( "BuildCommDcb Error: " + Str( nError ) )
xRESZTA:=.F.
EndIf
If ! SetCommState( hPORT, cDcb )
nError = GetCommError( hPORT )
MsgInfo( "SetCommState Error: " + Str( nError ) )
xRESZTA:=.F.
EndIf
If xRESZTA
oWND:oMSGBAR:cMSGDEF:=PNAME+" : OPEN"
oWND:oMSGBAR:Refresh(.T.)
Else
oWND:oMSGBAR:cMSGDEF:=PNAME+" : NOT OPEN"
oWND:oMSGBAR:Refresh(.T.)
EndIf
Return xRESZTA
Function COM_SEND(cTEKST)
Local xMESSAGE
Local nBYTES
Local nERROR
If ( nBytes := WriteComm( hPORT, cTEKST) ) <= 0
nError = GetCommError( hPORT )
MsgInfo( "WriteComm Error: " + Str( nError ) )
Else
// any GUI reaction
EndIf
Return .T. |
Comm with USB device | I have a devise with the bridge working on Com 7, so now I'm moving ahead with testing.
Unfotunately the device instructions were not exactly clear. Hopefully I'll have this fully working soon.
Tim |
Comm with USB device | All examples use OPENCOMM and WRITECOMM, but no examples show READCOMM.
It is supposed to place the value from the pointer in the referenced field, and return the number of bytes in the string. I get a return value of 8, which is correct, but no string placed in the buffer.
Thoughts ? |
Command Function | How to return the command-line arguments specified when launching a FW/FWH program.
Thanks in advance
Otto |
Command Function | Otto,
HB_ARGC() Returns the number of command line arguments passed to the application, this also includes the internal arguments
HB_ARGV( n ) Returns a command line argument passed to the application. Calling it with the parameter zero, it will return the name of the executable, as written in the command line |
Command Function | In FW 16 bits you may use: NARGC() and CARGV( n ) |
Command Function | Or, for a fixed number of parameters:
FUNCTION MAIN( cPar1, cPar2, cPar3 )
EMG |
Command Function | WOW - that's support! |
Command Line Activation Of Explorer To ""Mobile Device&q | I create data transfer files using FWPPC and then want to transfer a folder from the Pocket PC to my clients network simply using 'Cut/Paste' or a drag.
To make it simple I want to open explorer from my application and have the required folder on the PPC already selected ready for a right click and copy.
If possible could anyone help me with the command line syntax to launch explorer to a folder on the PPC e.g.
[code:3vtnqh5r]
"explorer /n, /e, /select, \Mobile Device\My Pocket PC\Program Files\My Application\<Data Folder>" [/code:3vtnqh5r]
Getting to "My Computer" and seeing the Mobile Device icon is easy but I want to avoid any possibility of missing the data folder on the PPC. |
Command Line tools for XCode | [url:12rzapf2]http://kennethreitz.com/xcode-gcc-and-homebrew.html[/url:12rzapf2]
[url:12rzapf2]http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/[/url:12rzapf2]
Thanks to Jose Luis from Alanit! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Command Line tools para XCode | [url:k0ogpiho]http://kennethreitz.com/xcode-gcc-and-homebrew.html[/url:k0ogpiho]
[url:k0ogpiho]http://www.mkyong.com/mac/how-to-install-gcc-compiler-on-mac-os-x/[/url:k0ogpiho]
Gracias a Jose Luis de Alanit! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
Command Prompt stay on top | I need to run the command prompt from some of my programs.
It works fine using WinExe("cmd.exe",1)
But if the user clicks any where from opened command prompt window it is not accessible any more.
In normal situation, the Command prompt can be found at the bottom, at the system tray, this is not a problem.
The problem is that my program runs on completely empty desktop, the task bar is hidden, no visible system tray or Start button, nothing, the entire surface is covered by my program dialog. No command can be issued from outside my program, the only activity is from two buttons "Command" and "ShutDown"
In such case when user opens the command prompt and if he/she click by mistake anywhere from command prompt dialog, the command propmd window is hidden and cannot be accessed again...
My idea was if I can run command prompt with some parameter which will cause this window to stay on top until then user closes it?
Apreciate any idea
Thanks
Boris |
Command Prompt stay on top | Whenever the need arise I use <!-- m --><a class="postlink" href="http://www.fadsoft.net/AlwaysOnTopMaker.htm">http://www.fadsoft.net/AlwaysOnTopMaker.htm</a><!-- m --> , a freeware to keep whatever windows I need always on top |
Command ROBOCOPY | Hace poco he descubierto este comando de consola que me ha parecido muy interesante
Por si hay alguien que tampoco lo conoce
<!-- m --><a class="postlink" href="http://technet.microsoft.com/en-us/library/cc733145.aspx">http://technet.microsoft.com/en-us/libr ... 33145.aspx</a><!-- m --> |
Command ROBOCOPY | Cristobal
Robocopy is a great tool to copy files from one destination to another specifically to additionally copy the attributes or permissions on those files. Robocopy comes in very handy in a network server situation where you are copying data from one volume to another retaining all file permissions on the data.
I use robocopy at times rather than just the copy *.* .. if I want to capture a data image .. I use Robocopy .. otherwise Copy *.*
Rick Lipkin |
Command ROBOCOPY | Can Robocopy keep the physical order of the files. It seems that it always copy them in alphabetical order.
EMG |
Commend-line Reference | [url:jcljy8nh]http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true[/url:jcljy8nh] |
Comments and requests about TWBrowse | Hi,
I have a big dialog with a Listbox inside.
oBrw:cAlias is a dbf table in a server volume. Network is very slow.
I drag another application's dialog left and right again and again and again..
I note a very slow refresh. It is tedious and ugly looking.
Repaint of other applications with similar listbox work more quickly
My proposal is this: is it possible to modify TWBrowse class so as to make it much faster.
Method Paint makes a lot of skip in the database without a reason
He should do so only if it has the focus and if the user touches any key or the mouse and not if the application is in the background
If I did not explain enough here I am available, Meanwhile, thanks for your attention.
Marco |
Comments and requests about TWBrowse | Marco,
If the network is slow you could consider to load the records into an array and browse the array instead of the DBF.
Every amount of time you may check if the DBF has been modified and if so, then you reload the array. |
Comments and requests about TWBrowse | Antonio,
thanks for your interest.
Even locally you can note this "refresh"
You say to load only visible records?
Could not become a new feature of twbrowse class?
It's just an idea
Have a nice weekend
marco |
Comments and requests about TWBrowse | Antonio,
please I have another question: xBrowse provides this feature?
marco |
Comments and requests about TWBrowse | Marco,
Class TWBrowse is the fastest FWH browse as it performs very few calculations to display the fields data. It is really strange that you find it slow. Surely there is a problem with your network or server that is slowing down the data access.
Class TXBrowse is much more sofisticated and provides many features thats why it is a little slower than TWBrowse. But even Class TXBrowse is very fast for modern computers and networks.
Definetively there may be a problem in your network. What Windows versions are you using from the client computers and in the server ? It is very important not to use different Windows versions on the same network.
What computers processors are you using ? Memory amount ? Only on very old computers you could experience a slow performance. |
Comments and requests about TWBrowse | Antonio,
I know very well that TWBrowse is very very fast.
This is just an idea: If my application is in background the repaint method should not read information from the table but only by an array containing the records visible at that moment.
I do not know well twbrowse class, I just use it.
The class could distinguish between actions desired by user and actions performed by the system. In the first case (user and foreground) is obvious that Method Paint should re-read records from table.
In the second one (system, background and involuntary) for instance evoked only to move another application over it on the desktop, it would be much faster, if repaint was just "the image" of that moment, or as written above, reading an array.
My observation is more theoretical than practical.
If there are particular problems of development could be a good implementation
The end user uses an app with less inertia
Bye
marco |
Comments and requests about TWBrowse | Marco,
[quote:1vmrmusz]could distinguish between actions desired by user and actions performed by the system[/quote:1vmrmusz]
Thats the key. How to identify them ? <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Even if the window or dialog, that contains the browse, don't have the focus, the user may be watching the records, or using a timer to refresh them from the dbf. How to know when the records should not be the DBF real ones ?
Its a quite difficult question... |
Comments and requests about TWBrowse | Antonio,
You're in right.
I hope to prepare a sample for you and other guys to explain better what I think exactly.
Have a nice day
marco |
Comments and requests about TWBrowse | Mr Marco
[quote:sroai50t]In the second one (system, background and involuntary) for instance evoked only to move another application over it on the desktop, it would be much faster, if repaint was just "the image" of that moment, or as written above, reading an array.
[/quote:sroai50t]
Here is a derived class from TXbrowse. This does not read data to repaint when it gets PAINT messages when it is out of focus for reasons given by you above.
Hope this can be tested in real applications and see if this is useful.
[code=fw:sroai50t]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'fivewin.ch'</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">'xbrowse.ch'</span><br /><br />#xtranslate DelObj <o> => <span style="color: #00C800;">If</span> <o> != <span style="color: #00C800;">nil</span>; DeleteObject<span style="color: #000000;">(</span> <o> <span style="color: #000000;">)</span>; <span style="color: #00C800;">endif</span>; <o> := <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">CLASS</span> TXBR3 <span style="color: #0000ff;">FROM</span> TXBROWSE<br /><br /> CLASSDATA lRegistered AS LOGICAL <span style="color: #B900B9;">// used internally</span><br /><br /> <span style="color: #00C800;">DATA</span> hSaveScr<br /><br /> <span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><br /><span style="color: #00C800;">METHOD</span> <span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TXBR3<br /><br /> <span style="color: #00C800;">local</span> aInfo<br /><br /> <span style="color: #00C800;">if</span> ::<span style="color: #000000;">hSaveScr</span> != <span style="color: #00C800;">nil</span> .and. GetFocus<span style="color: #000000;">(</span><span style="color: #000000;">)</span> != ::<span style="color: #000000;">hWnd</span><br /> aInfo := ::<span style="color: #000000;">DispBegin</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DrawBitmap<span style="color: #000000;">(</span> ::<span style="color: #000000;">hDC</span>, ::<span style="color: #000000;">hSaveScr</span>, <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">)</span><br /> ::<span style="color: #000000;">DispEnd</span><span style="color: #000000;">(</span> aInfo <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">else</span><br /> <span style="color: #00C800;">Super</span>:<span style="color: #0000ff;">Paint</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> DelObj ::<span style="color: #000000;">hSaveScr</span><br /> ::<span style="color: #000000;">hSaveScr</span> := WndBitMap<span style="color: #000000;">(</span> ::<span style="color: #000000;">hWnd</span> <span style="color: #000000;">)</span><br /> <span style="color: #00C800;">endif</span><br /><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">METHOD</span> Destroy<span style="color: #000000;">(</span><span style="color: #000000;">)</span> <span style="color: #00C800;">CLASS</span> TXBR3<br /><br /> DelObj ::<span style="color: #000000;">hSaveScr</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">Super</span>:<span style="color: #000000;">Destroy</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> </div>[/code:sroai50t]
Usage ...
XBROWSE may be defined as usual but at the end add the clause " CLASS TXBR3()" |
Comments and requests about TWBrowse | Marco,
TWBrowse does only read the records in the display when it is repainted. If you are viewing records in a filter this could be very slow.
You could disable the browse when the user opens another window or dialog, then enable it when they return to the window or dialog containing the browse. This way it would not get repainted.
James |
Comments and requests about TWBrowse | Ok thanks |
Comments and requests about TWBrowse | James,
I've tested a program with
ACTIVATE DIALOG oDlg ON INIT oBrw:disable()
to disable twbrowse.
Then I move on the desktop another little window of another application.
It seems that repaint of dialog with obrow inside is active.
It is very very slow
thanks |
Comments and requests about TWBrowse | Marco,
I think you have something else going on.
Below is a test program. After starting it, move the mouse cursor over it and you will hear a beep as the browse repaints. Then press the button and the browse will be disabled. Now try moving the mouse over it again and there is no beep. This confirms that the browse is not repainting when disabled.
We are going to have to see your code to figure out what is going on in your app that is causing the problem.
James
[code=fw:2ttuocpk]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #B900B9;">// Test disabled TWBrowse for painting while disabled.</span><br /><span style="color: #B900B9;">// Use with FWH\samples\customer.dbf file</span><br /><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;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oLbx, oBar<br /><br /> use customer<br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Test Browse"</span><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar <span style="color: #0000ff;">of</span> oWnd<br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">action</span> oLbx:<span style="color: #000000;">disable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> @<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">listbox</span> oLbx fields first, last;<br /> <span style="color: #0000ff;">alias</span> <span style="color: #ff0000;">"customer"</span>;<br /> <span style="color: #0000ff;">of</span> oWnd<br /><br /> oLbx:<span style="color: #000000;">bSkip</span>:= <span style="color: #000000;">{</span>|nRecs| <span style="color: #000000;">(</span>msgbeep<span style="color: #000000;">(</span><span style="color: #000000;">)</span>,customer-><span style="color: #000000;">(</span>dbskipper<span style="color: #000000;">(</span> nRecs<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oWnd:<span style="color: #000000;">oClient</span>:= oLbx<br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd<br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:2ttuocpk] |
Comments and requests about TWBrowse | Apparently, my test was flawed. I concerned me that I was only hearing one beep when the screen was repainted. So I figured out it needed a sysrefresh() and a slight delay so all of the beeps could be heard.
The below example is a fix. Now even when the control is disabled() you can hear beeps.
I notice when the screen gets repainted there seem to be many more beeps than there are records displayed which means more records are being read than are needed. Maybe the screen is being repainted two or more times. This needs further investigation.
Any ideas, Antonio, or Rao? Or anyone else?
James
[code=fw:124ugydc]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> main<span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> <span style="color: #00C800;">local</span> oWnd, oLbx, oBar<br /><br /> use customer<br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">window</span> oWnd <span style="color: #0000ff;">title</span> <span style="color: #ff0000;">"Test Browse"</span><br /><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">buttonbar</span> oBar <span style="color: #0000ff;">of</span> oWnd<br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">action</span> oLbx:<span style="color: #000000;">disable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /> <span style="color: #0000ff;">define</span> <span style="color: #0000ff;">button</span> <span style="color: #0000ff;">of</span> oBar <span style="color: #0000ff;">action</span> oLbx:<span style="color: #000000;">enable</span><span style="color: #000000;">(</span><span style="color: #000000;">)</span><br /><br /> @<span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">listbox</span> oLbx fields first, last;<br /> <span style="color: #0000ff;">alias</span> <span style="color: #ff0000;">"customer"</span>;<br /> <span style="color: #0000ff;">of</span> oWnd<br /><br /> oLbx:<span style="color: #000000;">bSkip</span>:= <span style="color: #000000;">{</span>|nRecs| <span style="color: #000000;">(</span>msgBeep<span style="color: #000000;">(</span><span style="color: #000000;">)</span>,<span style="color: #0000ff;">sleep</span><span style="color: #000000;">(</span>.<span style="color: #000000;">1</span><span style="color: #000000;">)</span>,sysrefresh<span style="color: #000000;">(</span><span style="color: #000000;">)</span>,customer-><span style="color: #000000;">(</span>dbskipper<span style="color: #000000;">(</span> nRecs<span style="color: #000000;">)</span><span style="color: #000000;">)</span> <span style="color: #000000;">)</span> <span style="color: #000000;">}</span><br /><br /> oWnd:<span style="color: #000000;">oClient</span>:= oLbx<br /><br /> <span style="color: #0000ff;">activate</span> <span style="color: #0000ff;">window</span> oWnd <br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span></div>[/code:124ugydc] |
Comments and requests about TWBrowse | Ok, I see the problem. Any movement of something over the browse will trigger a repaint and thus a re-read of all the displayed records. As the object over the browse moves, the screen may need to be repainted many times thus many re-reads of the records. When the records are in a filter or are being read from a network drive this may make a very noticable delay in the repaint.
Also, you can't stop repainting when the control is disabled since the screen still needs to be repainted. If you couldn't read the records, then there would be no data to display.
The simple solution is to use recordsets. Since these are arrays stored locally, then the repaint will be fast. The downside is that records that have been changed at the source will not be visible on the client (in the recordset) until the recordset is refreshed.
Another solution might be to modify the browse to buffer the displayed data in an array (as Marco suggested), so that only the array is reread whenever the screen is repainted but only when the control is out of focus. This could be complex to implement and would also slow down the normal display since the buffer array would have to be reloaded each time a new record was displayed in the browse.
James |
Comments and requests about TWBrowse | James,
You hit the problem.
>>Also, you can't stop repainting when the control is disabled since the screen still needs to be >>repainted. If you couldn't read the records, then there would be no data to display.
The solution could be to load an array only visible cells visible and do repaint reading only content of these cells from array and not from database.
Obviously it must be a parameter.
If this flag is "ON" I re-read from table otherwise if "OFF" instead I read from array in memory.
I think that with this implementation twbrowse class will be more appreciate.
No more problems of inertia for simply moving of window on your desktop
I am not be able to modify twbrowse class in this direction.
I hope to create a sample to better explain what I mean
Thanks again james |
Comments and requests about TWBrowse | Marco,
I do understand what you mean. However, modifying a browse to do this is no trivial matter, and thus I would rather see it implemented with TXBrowse than TWBrowse. TXBrowse is a much more advanced browser.
James |
Comments and requests about TWBrowse | [quote="MarcoBoschi":1g338f4i]James,
I've tested a program with
ACTIVATE DIALOG oDlg ON INIT oBrw:disable()
to disable twbrowse.
Then I move on the desktop another little window of another application.
It seems that repaint of dialog with obrow inside is active.
It is very very slow
thanks[/quote:1g338f4i]
Try using
LOCKWINDOWUPDATE( oBrw:hWnd )
instead (and
LOCKWINDOWUPDATE()
to reactivate the window update).
EMG |
Comments and requests about TWBrowse | [quote="MarcoBoschi":2kq6pdpd]James,
You hit the problem.[/quote:2kq6pdpd]
Sorry, but you didn't report any concrete problem so far. Can we see a reduced and self-contained sample still showing it?
EMG |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.