topic
stringlengths
1
63
text
stringlengths
1
577k
Bloqueo de fichero
Yo lo hago asi con imagenes tif Tengo 5 usuarios las imagenes van desde el 0001.tif hasta x número de imagenes. El programa hace un while desde el 0001 en adelante. El primer usuario en tomar una imagen hace que el programa cree un archivo txt con el mismo nombre de la imagen. Entonces el siguiente usuario al entrar el programa verifica si existe un archivo txt con el mismo nombre de la imagen. Si ya existe pasa al siguiente archivo... y asi sucesivamente hasta que encuentre una imagen que no tenga un archivo txt con el mismo nombre.
Bloqueo de fichero
He hecho pruebas, y me es mas facil tener controlado el tema por una base de datos, ya que además puedo incluir un campo que se llama Usuario, con lo que el usuario puede dejar reservadas imágenes para pasarlas él, por ejemplo las de un determinado cliente si pertenece a su zona, etc. Ya está acabado. La idea era que a primera hora, se escaneen todos los albaranes, y en lugar de pasarlos físicamente, pasarlos visualmente. Esto tiene la ventaja de que si necesitamos una copia en el futuro, no hay que ir a archivo a buscarla, simplemente se localiza y se imprime. Los albaranes se escanean en una carpeta provisional de trabajo, según se van realizando, borrarlos de ésta carpeta y pasarlos a una definitiva, desde la que incluso los clientes con una clave pueden acceder a éstas imagenes. Lo que yo no sé es si será un trabajo excesivo para el ordenador, estar continuamente por cada operador, copiando mediante copy file to, a éste directorio defitinitivo, y borrando el fichero del directorio de trabajo, en fin ya veremos. Saludos Jose Luis
Bloqueo de fichero
[quote="JoseLuis":a20a6wqh]He hecho pruebas, y me es mas facil tener controlado el tema por una base de datos, ya que además puedo incluir un campo que se llama Usuario, con lo que el usuario puede dejar reservadas imágenes para pasarlas él, por ejemplo las de un determinado cliente si pertenece a su zona, etc. Ya está acabado. La idea era que a primera hora, se escaneen todos los albaranes, y en lugar de pasarlos físicamente, pasarlos visualmente. Esto tiene la ventaja de que si necesitamos una copia en el futuro, no hay que ir a archivo a buscarla, simplemente se localiza y se imprime. Los albaranes se escanean en una carpeta provisional de trabajo, según se van realizando, borrarlos de ésta carpeta y pasarlos a una definitiva, desde la que incluso los clientes con una clave pueden acceder a éstas imagenes. Lo que yo no sé es si será un trabajo excesivo para el ordenador, estar continuamente por cada operador, copiando mediante copy file to, a éste directorio defitinitivo, y borrando el fichero del directorio de trabajo, en fin ya veremos. Saludos Jose Luis[/quote:a20a6wqh] Mi sugerencia es que a tu aplicacion le dotes de un boton que lee la carpeta de trabajo y que si encuentra una imagen nueva que lo inscriba en la BD. De esa forma creo que disminuiría la carga de trabajo y que los operadores hagan algo más productivo que estar haciendo "copy file".
Bloqueo de fichero
Hola Armando, me referia al propio programa, no al operador, puse esta rutina[code:35phrgbq]//---------------------------------- static function borraimagen(aAlias,ficheros) local numero numero:=Str((aAlias[24])->Orden,7)+'.jpg' copy file (Publicas:rimagen+ficheros) to (Publicas:eimagen+numero) Ferase(Publicas:rimagen+ficheros) While .not. (aAlias[14])->(Rlock()); end (aAlias[14])->( dbdelete()) (aAlias[14])->( dbUnlock() ) return nil //--------------------------------- [/code:35phrgbq] Quería decir que si no sería mucho trabajo para los discos duros del Ordenador. Además puse un boton para cargar las imágenes, todo controlado por la BD, y funciona fabuloso Saludos Jose Luis
Bloqueo de fichero
Bien... no creo que sea muchotabajo para el disco duro. Lo que puede suceder esque haya bastantes imagenes que copiar y borrar en cuyo caso, al estar la PC haciendo trabajo en bajo nivel, podría bajar la performance del equipo... no se hasta cuanto pero si que lo puede bajar. Otra forma seria que inscribieras directamente, desde la carpeta inicial de imagenes, los nombres en la base de datos... sin borrarlas y que despues mediante una rutina utilitaria separada de este modulo efectuaras el borrado de las imagenes existentes en la carpeta inicial... porque ya no las necesitas. Otra forma forma, que puede servirte siempre y cuando tengas disco duro suficiente, es almacenar las imágenes directamente en la BD en el momento que las inscribes (en campos blob). En este caso seria tu BD la que contenga las imagenes para consultas en linea. Bueno... hay varias formas, cada una tiene sus particularidades a favor y en contra.
Bloqueo en xbrowse
Hola foro. Un detalle con la actualizacion de xbrowse: Tengo en mis aplicaciones el uso de tsbrowse 9.0 y construyo un browse normalmente, resulta que si contruyo con xbrowse... mi aplicacion donde desafecto una poliza truena, para poder hacerlo debo bloquear mi registro, y no hay problema en mi version de tsbrowse, pero al cambiarla con xbrowse de alguna forma mi registro bloqueado se libera y me marca el logico "lock requerido" por el simple hecho de usar xbrowse, y bloqueo previamente mi registro. Algo al respecto con xbrowse porfa.
Bloqueo en xbrowse
Sería bueno que pusieras el código que truena. Yo utilizo xBrowse sin problemas. Saludos
Bloquer el movimiento de Scroll
Estimados... Uso: nStyle := nOr( WS_CHILD, WS_VSCROLL, WS_BORDER, WS_VISIBLE, WS_TABSTOP) para no visualizar la barra scroll horizontal, pero el movimiento sigue estando, como puedo bloquear ese movimiento. gracias David Argentina
Bloquer el movimiento de Scroll
.... en un LISTBOX David
Bloquer el movimiento de Scroll
David, Prueba con: [code=fw:3akzy5bm]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp;oBrowse:<span style="color: #000000;">oHScroll</span>:<span style="color: #000000;">SetRange</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">0</span>, <span style="color: #000000;">0</span> <span style="color: #000000;">&#41;</span><br />&nbsp;</div>[/code:3akzy5bm]
Bloquer el movimiento de Scroll
Estimado Antonio NO funcionó, me dió error el programa david
Blowfish Encryption
I'm working on a customer project requiring encryption, and Blowfish is one of the encryption technologies approved by the customer. I see that Blowfish encryption was added to the Harbour core last March. Has anyone had experience with it, and if so, do you have any tips for using it?
Blowfish Encryption
Hello try [code=fw:2qy14s9g]<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 /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cBfKey := hb_blowfishKey<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"fivewin"</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cText := <span style="color: #ff0000;">"testing blowfish encript"</span><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cipher<br /><br />&nbsp; &nbsp; ? cipher := hb_blowfishEncrypt<span style="color: #000000;">&#40;</span> cBfKey, cText <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; ? hb_blowfishDecrypt<span style="color: #000000;">&#40;</span> cBfKey, cipher <span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:2qy14s9g]
Blowfish Encryption
Thanks!
Blowfish Encryption
Hi Daniel. how to decrypt Blowfish with these functions? where I find documentation on the use of these functions? thanks regards
Blowfish Encryption
Hi Daniel. Oops, sorry ... Thanks anyway
Blowfish encryption issue - key too long
When encrypting a dbf field, hb_blowfishkey() creates an encryption key that is 4168 bytes long. This causes the encryption and decryption processes to be extremely time consuming. For example, I have 23 fields in a dbf that take about 5 minutes to encrypt/decrypt per 1000 records. I see that RSA and other encryption systems generally use encryption keys that are only 128 BITS (not bytes) long, and so are much faster to process. Is there a way to set the size of the encryption key in Blowfish to make it a much shorter length so it will process faster? - Roger
Blowfish encryption issue - key too long
Here is some test code that shows the problem: [code=fw:26msvnbs]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #00C800;">Function</span> BlowfishTest<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #00C800;">local</span> cBfKey := hb_blowfishKey<span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"fivewin"</span> <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">MsgInfo</span><span style="color: #000000;">&#40;</span>cBfKey,<span style="color: #ff0000;">"cBfKey"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; <span style="color: #0000ff;">Msginfo</span><span style="color: #000000;">&#40;</span>LEN<span style="color: #000000;">&#40;</span>cBfKey<span style="color: #000000;">&#41;</span>,<span style="color: #ff0000;">"LEN(cBfKey)"</span><span style="color: #000000;">&#41;</span> &nbsp; &nbsp;<span style="color: #B900B9;">// I get len of 4168 bytes. Much too big!</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br />&nbsp;</div>[/code:26msvnbs] I'm using FWH 13.08 and xHarbour.com 13.08 .
Blowfish encryption issue - key too long
I sent a private email to Przemek about this. He is the expert on Blowfish encryption for Harbour, and If he offers a solution, I'll post it here.
Blu rays para copias de seguridad
Amigos, ¿Alguno lo usa y puede por favor compartir sus experiencia? Muy agradecida y felices fiestas!!
Blu rays para copias de seguridad
[quote:1n3ccl2x]Copiar Blu-rays para realizar copias de seguridad puede ser un proceso útil para preservar tus datos, pero ten en cuenta que la copia de discos Blu-ray con protección contra copias puede violar los derechos de autor. Asegúrate de tener el derecho legal para copiar el contenido antes de proceder. Aquí hay una guía general de cómo puedes hacerlo: Pasos Generales: Software de Copia: Necesitarás un software de copia de Blu-ray. Algunos ejemplos son MakeMKV, DVDFab, o AnyDVD HD. Algunos de estos programas pueden estar sujetos a regulaciones locales, así que asegúrate de cumplir con las leyes de derechos de autor de tu país. Hardware: Un lector de Blu-ray en tu computadora es esencial para leer el contenido del disco. Algunos programas también pueden necesitar una grabadora de Blu-ray si planeas crear un nuevo disco. Descifrado: Si el disco Blu-ray tiene protección contra copias, necesitarás un programa que pueda descifrarlo. AnyDVD HD, por ejemplo, puede eliminar la protección de copia mientras el disco está siendo leído. Copia del Contenido: Utiliza el software para copiar el contenido del Blu-ray a tu computadora. Puedes guardar el contenido en tu disco duro en formato ISO o MKV, dependiendo del software que estés utilizando. Almacenamiento: Guarda la copia en un lugar seguro. Puedes almacenarla en un disco duro externo, servidor de red o cualquier otro medio de almacenamiento seguro. Verificación: Después de la copia, verifica que los archivos copiados sean accesibles y que la calidad sea la adecuada. Consideraciones adicionales: Formatos de Copia: Puedes optar por copiar el Blu-ray como un archivo ISO (una imagen completa del disco) o en formato MKV (que conserva la calidad pero ocupa menos espacio). Compresión: Algunos programas te permiten comprimir el contenido para ahorrar espacio, pero esto generalmente conlleva una pérdida de calidad. Etiquetado y Organización: Etiqueta tus copias correctamente para que puedas identificar fácilmente el contenido. Algunos programas pueden ayudarte a obtener la información de la película automáticamente. Recuerda siempre respetar los derechos de autor y las leyes aplicables a la reproducción y copia de contenido. La información proporcionada aquí es solo para fines informativos y no fomenta la infracción de derechos de autor. [/quote:1n3ccl2x]
Blu rays para copias de seguridad
Hola Antonio, ¿cómo haces tu copia de tus archivos? Estoy dándole vueltas a usar Blu-ray por ser un soporte de solo Lectura y así protegerme contra ransomware, además de los clásicos nube y disco duro externo. Muchas gracias y saluditos
Blu rays para copias de seguridad
Estimada Elvira, > ¿cómo haces tu copia de tus archivos? Todo en github <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Blu rays para copias de seguridad
Facturas y fotos familiares?
Blu rays para copias de seguridad
esas van a google cloud <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Blu rays para copias de seguridad
¿Nadie los utiliza? No me refiero a grabar desde fivewin, sino como soporte de copia. Gracias y feliz año.
Blu rays para copias de seguridad
[quote="elvira":f6nf3r9l]¿Nadie los utiliza? No me refiero a grabar desde fivewin, sino como soporte de copia. Gracias y feliz año.[/quote:f6nf3r9l] Una idea: almacenar los medios físicos y liberarlos en discos ópticos con 1 TB de espacio libre. Blu Ray es cosa del pasado. Mira: [url:f6nf3r9l]https&#58;//www&#46;mundoconectado&#46;com&#46;br/tecnologia/fim-do-blu-ray-disco-optico-de-1-tb-pode-ser-o-futuro-da-midia-fisica/#&#58;~&#58;text=Dominando%20o%20mercado%20h%C3%A1%20quase,de%20espa%C3%A7o%20livre%2C%20em%202024&#46;[/url:f6nf3r9l] Regards, saludos.
Blu rays para copias de seguridad
Muchas gracias, pero hasta el 2025 no estará disponible!!!
Blu rays para copias de seguridad
[quote="elvira":106737e3]Muchas gracias, pero hasta el 2025 no estará disponible!!![/quote:106737e3] Elvira, Lo siento. Esto no es bueno en absoluto. Regards, saludos.
Blue in bmp turns grey
I want to disply this bitmap with TBitmap: [img:pybt6t33]http&#58;//www&#46;ursini&#46;at/zwischen/blue&#46;bmp[/img:pybt6t33] The blue turns to grey when the bitmap it displayed in the dialog. What do I have to change? Thanks for help, Dietmar
Blue in bmp turns grey
Dietmar, Please change the color of the pixel in 0, 0 to a different color. FWH uses pixel 0, 0 color as the transparency desired color.
Blue in bmp turns grey
[quote="Antonio Linares":1oi3vn6w]Dietmar, Please change the color of the pixel in 0, 0 to a different color.[/quote:1oi3vn6w] If I change the pixel in the upper left corner (is this 0,0 not 1,1?), this pixel is transparent. Is that correct? If your are picky you can see that... Any news with trees and different fonts? <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Thanks, Dietmar
Blue in bmp turns grey
Dietmar, Are you using the TRANSPARENT clause from the BITMAP command ? > Any news with trees and different fonts? I may have missed your question about this.
Blue in bmp turns grey
[quote="Antonio Linares":jzaly8lc]Dietmar, Are you using the TRANSPARENT clause from the BITMAP command ? not from the BITMAP command, but in the DIALOG command. I just found out that this makes the difference. I need this bitmap painted not transparent on a transparent dialog. Can this be done? > Any news with trees and different fonts? I may have missed your question about this.[/quote:jzaly8lc] I found the discussion about this in "Colors for TTreeView, one for each item!?" We are using TTreeView in our application now and it would be nice to show (only) some lines in bold font. Best regards, Dietmar
Blue in bmp turns grey
Yes, though it is much more complex than that. You can check Class TWindow, TListBox and TComboBox and see how Method DrawItem() are implemented. - I'm sure about that. But for FWH-users it will be something like one more parameter, I guess - that's why we all like to work with FWH <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> Please try this: oBitmap:lTransparent = .F. - sorry, no changes. For a quick solution I change the first pixel of the bitmap... Dietmar
Blue in bmp turns grey
Dietmar, I guess the only way to do it is to use the style WS_OWNERDRAW for the treeview control in the resource
Blue in bmp turns grey
[quote="Antonio Linares":2yr6k6hl]Dietmar, I guess the only way to do it is to use the style WS_OWNERDRAW for the treeview control in the resource[/quote:2yr6k6hl] Even then we would need a parameter for the font when the item is added in FWH, don't we? oItem1 = oTree:Add( cPrompt, nImage, nValue, xxxoFontxxx ) or similar Can this be done in the (near) future? For the bitmap: If the DIALOG is defined TRANSPARENT the BITMAP is always painted transparent regardless if defined TRANSPARENT or not. Can this be changed? Dietmar
Blue in bmp turns grey
Dietmar, > Even then we would need a parameter for the font when the item is added in FWH, don't we? oItem1 = oTree:Add( cPrompt, nImage, nValue, xxxoFontxxx ) or similar Can this be done in the (near) future? > Yes, though it is much more complex than that. You can check Class TWindow, TListBox and TComboBox and see how Method DrawItem() are implemented. > For the bitmap: If the DIALOG is defined TRANSPARENT the BITMAP is always painted transparent regardless if defined TRANSPARENT or not. Can this be changed? > Please try this: oBitmap:lTransparent = .F.
Bluehost MySQL Server through Fivewin
Hello Antonio, Do you know if it is possible to access MySQL Server located on Bluehost through Fivewin. Thanks in advance Otto
Bluehost MySQL Server through Fivewin
Yes! But your app ip should be fixed, set permission ip on the bulehost control panel. Shuming Wang
Bluehost MySQL Server through Fivewin
Otto, Here you have an example published by Rafa Carmona using a web service: <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?p=184458">viewtopic.php?p=184458</a><!-- l -->
Bluehost MySQL Server through Fivewin
Dear Antonio and Shuming, Thank you for your help. I will post here all the steps I do till I have finished a working sample. As Shuming told me you have to setup Bluehost first to accept remote access. ->login bluehost cPanel ->database tools ->Remote Mysql access Submit an IP or Class C I submitted Class C access which you get with the add link Then I downloaded HeidiSQL and tested the remote access from my desktop Now I want to start to access from a Fivewin programm. Which SQL driver would you suggest to start with? Is there a working sample? Best regards, Otto
Bluehost MySQL Server through Fivewin
Otto, Look for FW_OpenAdoConnection in FWH\samples\*.prg Also you can review FiveDBU source code
Bluehost MySQL Server through Fivewin
Otto, You can use libmysql.dll. It's working very good. Edited: With TDolphin, of course
Bluehost MySQL Server through Fivewin
Dear Antonio, Can you show us how the connectionstring should look like. These are my parameters I use in HeidiSQL which work fine. LOCAL cHost := "box894.bluehost.com" LOCAL cUser := "axxxxnge" LOCAL cPsw := "14Adxxxx1" LOCAL nPort := 3306 LOCAL cDb := "atzwange_xxxxxe3" Thanks in advance Otto FUNCTION SQLEXEC( cQuery ) LOCAL cCns := "Your connectionstring here" LOCAL oCn := CREATEOBJECT( "ADODB.Connection" ) oCn:CursorLocation = adUseClient oCn:Open( cCns ) oCn:Execute( cQuery ) oCn:Close() RETURN NIL
Bluehost MySQL Server through Fivewin
Otto, Here you have some examples: [url:3uf4k32a]https&#58;//msdn&#46;microsoft&#46;com/en-us/library/ms807027&#46;aspx[/url:3uf4k32a]
Bluehost MySQL Server through Fivewin
Dear Antonio, thank you for your help. Now I can successfully connect to Bluehost with FIVEDBU. Great. Download: mysql-connector-odbc-5.1.13-win32.msi Click on ICON "ADO open" [img:17q1hrfz]http&#58;//www&#46;atzwanger-software&#46;com/fw/mysql1&#46;jpg[/img:17q1hrfz] [img:17q1hrfz]http&#58;//www&#46;atzwanger-software&#46;com/fw/mysql4&#46;jpg[/img:17q1hrfz] [img:17q1hrfz]http&#58;//www&#46;atzwanger-software&#46;com/fw/mysql3&#46;jpg[/img:17q1hrfz] [img:17q1hrfz]http&#58;//www&#46;atzwanger-software&#46;com/fw/mysql2&#46;jpg[/img:17q1hrfz] Best regards, Otto
Bluehost MySQL Server through Fivewin
Otto, great! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
Bluetooth
Hi, Does anyone have any experience with FWH and Bluetooth???? I am having some issues with both Desktop systems and Pocket PC system. The main issues is connecting to a device via programming. I want to have as little user interaction with settings as possible. In a perfect world, I would like the user to be able to run the program, have the program connect (and pair if needed) to the BT device. It would also be nice I I could somehow switch from device #1 to device #2 on a pocket pc as there is only one available com port to connect to. Is there yet a Bluetooth Class or something for FWH / FWPPC ? I've search the forums but have found nothing that can help. Any info, samples, website etc.... would be helpful ... anything.
Bluetooth
I found this site: [url:30bg1xye]http&#58;//32feet&#46;codeplex&#46;com/[/url:30bg1xye] It looks like this gives some good Bluetooth control and it's opensource. Antonio, is this something that will work with FWH? It is beyond my abilities but maybe someone here can find a way to make it work?
Bluetooth
Am I the only one having issues with Bluetooth devices?
Bluetooth
Or, maybe you are the only one that has tried to use a Bluetooth device. James
Bluetooth
Hmm ... didn't consider that option <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> If someone can take a quick look at the info on the web site below and let me know if it is possible that it will work with FWH, I will try to play with it and see what I can do. It would be nice to have a Bluetooth class for FWH. I've never attempted something like this so it could be interesting. [url:1x7gfj7x]http&#58;//32feet&#46;codeplex&#46;com/[/url:1x7gfj7x]
Bluetooth (2nd try)
Hi Everybody, I am wondering if I can read data from a bluetooth enabled device via FWH. I am not looking to send data to the device. Does anyone know if this is possible? Can you point me in the right direction. This is the first time I have tried to do anything with bluetooth so I'm not sure exactly how this would work. Thanks, Jeff
Bluetooth (2nd try)
Jeff, It looks as the bluetooth uses a COM port, so you may be able to use fwh\samples\phone.prg and samples\TestComm.prg as a model.
Bluetooth (2nd try)
Thanks Antonio. Jeff
Bluetooth (2nd try)
Jeff, Here is an MS reference that might help. Bluetooth Programming with Windows Sockets <!-- m --><a class="postlink" href="http://msdn2.microsoft.com/en-us/library/aa362928.aspx">http://msdn2.microsoft.com/en-us/library/aa362928.aspx</a><!-- m --> It looks like it is going to be a fair amount of work. I advise creating a bluetooth class. James
Bluetooth (2nd try)
James, We have not tested bluetooth with a PC, but on the Pocket PC there are several ways to use the bluetooth: as a COMM port or using sockets. I guess the same may be applied to the PC.
Bluetooth (2nd try)
can I have any sample pls
Bluetooth (2nd try)
Silvio, <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=747&highlight=bluetooth">http://fivetechsoft.com/forums/viewtopi ... =bluetooth</a><!-- m --> Also make a search for bluetooth on these forums
Bluetooth 4.0 BLE
Has anyone connected to a Bluetooth 4.0 BLE device? The older Bluetooth devices would create a com port which I would connect to. The new Bluetooth devices use the Low Energy standard and these do not create a com port. I have no idea how I would connect to them.
Bluetooth Activated
Greetings, FWPCC a way that can be activated from the bluetooth if this is off [code=fw:txz7z2zh]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">public</span> <span style="color: #00C800;">class</span> BlueTooth<br /><br /><span style="color: #000000;">&#123;</span><br /><br /><span style="color: #00C800;">private</span> enum BluetoothMode : <span style="color: #000000;">int</span><br /><br /><span style="color: #000000;">&#123;</span><br /><br />Off = <span style="color: #000000;">0</span>, <span style="color: #B900B9;">//Turn off the Bluetooth radio.</span><br /><br />Connectable = <span style="color: #000000;">1</span>, <span style="color: #B900B9;">//Turn on the Bluetooth radio, and make it connectable.</span><br /><br />Discoverable = <span style="color: #000000;">2</span> <span style="color: #B900B9;">//Turn on the Bluetooth radio, and make it both connectable and discoverable.</span><br /><br /><span style="color: #000000;">&#125;</span>;<br /><br /><span style="color: #000000;">&#91;</span>DllImport<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"BthUtil.dll"</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#93;</span><br /><br /><span style="color: #00C800;">private</span> <span style="color: #00C800;">static</span> extern int BthSetMode<span style="color: #000000;">&#40;</span>BluetoothMode mode<span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #00C800;">public</span> <span style="color: #00C800;">static</span> bool EnableBT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span>BthSetMode<span style="color: #000000;">&#40;</span>BluetoothMode.Connectable<span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #00C800;">public</span> <span style="color: #00C800;">static</span> bool DisableBT<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #000000;">&#123;</span><br /><br /><span style="color: #00C800;">return</span> <span style="color: #000000;">&#40;</span>BthSetMode<span style="color: #000000;">&#40;</span>BluetoothMode.Off<span style="color: #000000;">&#41;</span> == <span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span>;<br /><br /><span style="color: #000000;">&#125;</span><br /><br /><span style="color: #000000;">&#125;</span><br />&nbsp;</div>[/code:txz7z2zh]
Bluetooth Activated
[url=http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=7&t=17342&p=90189#p90189:2wfemzbf][size=200:2wfemzbf]Solution Here!!![/size:2wfemzbf][/url:2wfemzbf]
Bluetooth Activated
Hello Pablo, thank you for the code. Maybe you also have a soltion for WiFi ON/OFF. Thanks in advance, Otto
Bluetooth File Transfer
is there a sample to trasfer a dbf from device to another vie Bluetooth ?
Bluetooth File Transfer on Dell Axim X51v PDA
Hi all, I am using a Dell Axim X51v PDA with Windows Mobile 5. I would like to use Bluetooth instead of the USB cable to transfer data files (dbf files) to my laptop. The Bluetooth services offered by the PDA do not include "File transfer". The laptop (using XP) does offer the "File transfer" service. Is this limitation caused by Windows Mobile 5? Would upgrading WM to say 6.x solve this mismatch? Or is it a basic problem with the Axim PDA? Thanks for any clues ... Cheers, Ross
Bluetooth File Transfer on Dell Axim X51v PDA
Hola, Hi all, I am using a Dell Axim X51v PDA with Windows Mobile 5. I would like to use Bluetooth instead of the USB cable to transfer data files (dbf files) to my laptop. The Bluetooth services offered by the PDA do not include "File transfer". The laptop (using XP) does offer the "File transfer" service. Is this limitation caused by Windows Mobile 5? Would upgrading WM to say 6.x solve this mismatch? Or is it a basic problem with the Axim PDA? Thanks for any clues ... Cheers, Ross
Bluetooth Printing
Hello,when i print to a bluetooth printer (EXTECH S2500THS) with [code:2so0a7no] local hOut &#58;= CreateFile&#40; gd_PrinterPort, GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL &#41; cText+=&#46;&#46;&#46;&#46;&#46; for n = 1 to Len&#40; cText &#41; WriteByte&#40; hOut, Asc&#40; SubStr&#40; cText, n, 1 &#41; &#41; &#41; next return nil[/code:2so0a7no]some of the characters get lost (always other characters, sometimes only one, sometimes 2, 3 or 4). The printer is connected via Bluetooth seriell at COM8. Must i configure something for bluetooth seriell communication at COM8 ?Would it help, if i put a sleep in the WriteByte loop ? If yes, with which command ?
Bluetooth Printing
Wolfgang,Please try calling SysRefresh() from inside the loop
Bluetooth Printing
Hello Antonio,do yo mean it in this way ?[code:2wgu4c5j] for n = 1 to Len&#40; cText &#41; WriteByte&#40; hOut, Asc&#40; SubStr&#40; cText, n, 1 &#41; &#41; &#41; SysRefresh&#40;&#41; next return nil[/code:2wgu4c5j]
Bluetooth Printing
yes
Bluetooth Printing
Hello Antonio,first tests did not change anything, but now i have reseted the whole system and the printing seems to be ok now.Thank you for your help.
Bluetooth Printing
Wolfgangrelease the handle or you may go into troubleThe sysrefresh is needed after sending a msginfo or msgyesno, not needed in the loop.i have been using BT printing with success since quite a while now . Only problem i have is printing french accented characters... still not solvedHTH[code:3bu5m0by] for n = 1 to Len&#40; cText &#41; WriteByte&#40; hOut, Asc&#40; SubStr&#40; cText, n, 1 &#41; &#41; &#41; SysRefresh&#40;&#41; next CloseHandle&#40; hOut &#41; // this is missing return nil[/code:3bu5m0by]
Bluetooth Printing
Hello Richard,thank you for your advice, i will add this to my prog.
Bluetooth Printing
Wolfgang ,I use this DLL<!-- m --><a class="postlink" href="http://www.fieldsoftware.com/PrintDC.htm">http://www.fieldsoftware.com/PrintDC.htm</a><!-- m -->You cann print to a wide variety of printers using Infrared, Bluetooth and 802.11b wireless network , choose the font and the color. Maurizio
Bluetooth Printing
Maurizio,i have ordered this SDK together with the Extech printer, but i am waiting for the delivery. Until now, i have no idea how to integrate this in my app.For now, it is ok with the text output, but perhaps a little bit later i will come back with questions to that SDK <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> There are now some other programming hints which i have to solve, connecting via seriell communication to a GPS-Logger, sending Data via Wireless Lan (if connected) and so on....
Bluetooth Printing
Wolfgang ,This is a sample .Regards MAurizio [code:1n8lhjv9]#include "FWCE&#46;ch" #define PD_SELECTPORTRAIT 0x00040000 #define PD_SELECTLANDSCAPE 0x00080000 //----------------------------------------------------------------------------// function Main&#40;&#41; local oWnd, cValue &#58;= "One" Local oFont Local cTitle &#58;= "Stampa" DEFINE WINDOW oWnd TITLE cTitle DEFINE FONT oFont NAME "Tahoma" SIZE 80, 80 @ 1, 2 BUTTON "Test" SIZE 80, 30 ACTION PrintCE&#40;&#41; ACTIVATE WINDOW oWnd return nil //----------------------------------------------------------------------------// function PrintCE&#40;&#41; OPEN_CE&#40;&#41; PrintLine&#40;"Print this line"&#41; CLOSE_CE&#40;&#41; //----------------------------------------------------------------------------- //----------------------------------------------------------------------------- #pragma BEGINDUMP #include <hbapi&#46;h> #include <windows&#46;h> #include <aygshell&#46;h> #include <commdlg&#46;h> #include "PrintDC&#46;h" static far HDC hPrDC; //============================================================================================== //TCHAR * AnsiToWide&#40; char * &#41;; extern "C" &#123; TCHAR * AnsiToWide&#40; char * &#41;; &#125;; HB_FUNC&#40; PRINTLINE &#41; &#123; int nLen = hb_parclen&#40; 1 &#41;; LPSTR pW = hb_parc&#40; 1 &#41; ; PDC_ExtTextOut&#40;hPrDC,100,100, 0, NULL, AnsiToWide&#40;pW &#41;, nLen * 2 , NULL&#41;; &#125; //============================================================================================== HB_FUNC&#40; OPEN_CE &#41; &#123; //Initialize PrintDC HWND hWnd; hWnd = FindWindow &#40;NULL,L"Stampa"&#41;; // MessageBox&#40; 0, wName, L"TRUE", 0 &#41;; PDC_Init&#40;_T&#40;"Key"&#41;&#41;; // PRINTDLG pdlg; memset&#40;&pdlg, 0, sizeof&#40;PRINTDLG&#41;&#41;; pdlg&#46;cbStruct = sizeof&#40;PRINTDLG&#41;; pdlg&#46;hwndOwner= hWnd; pdlg&#46;dwFlags = PD_SELECTPORTRAIT | PD_INTHOUSANDTHSOFINCHES; if &#40;!PDC_PrintDlg&#40;&pdlg&#41;&#41; &#123; //Show "Select Printer" dialog PDC_KillDoc&#40;NULL&#41;; //user may have pressed cancel - free PrintDC resources and clear error condition return; &#125; //Get the printer DC hPrDC=pdlg&#46;hdc; //Can also use PDC_GetPrinterDC&#40;&#41; if &#40;hPrDC==NULL&#41; return; //Get printer resolution int DPI; DPI=PDC_GetDeviceCaps&#40;hPrDC,LOGPIXELSX&#41;; //Get our margins - stored as thousandths of an inch&#46;since used PD_INTHOUSANDTHSOFINCHES // Convert margins to printer units &#40;DPI&#41; and subract physical offsets int leftmargin,topmargin; leftmargin=&#40;pdlg&#46;rcMargin&#46;left*DPI&#41;/1000 - PDC_GetDeviceCaps&#40;hPrDC,PHYSICALOFFSETX&#41;; topmargin=&#40;pdlg&#46;rcMargin&#46;top*DPI&#41;/1000 - PDC_GetDeviceCaps&#40;hPrDC,PHYSICALOFFSETY&#41;; //Lets get started printing DOCINFO di; PDC_StartDoc&#40;hPrDC,&di&#41;; PDC_StartPage&#40;hPrDC&#41;; //Print our text using default font &#125; //============================================================================================== HB_FUNC&#40; CLOSE_CE &#41; &#123; PDC_EndPage&#40;hPrDC&#41;; PDC_EndDoc&#40;hPrDC&#41;; if &#40;hPrDC&#41; PDC_DeleteDC&#40;&#40;HDC&#41; hPrDC&#41;; PDC_UnInit&#40;&#41;; &#125; #pragma ENDDUMP [/code:1n8lhjv9]
Bluetooth Printing
Thank you very much Maurizio, i save this on my disk !
Bluetooth dot matrix printer (star)
Hello: I have a converter Bluetooth - Paralel conected to the printer. I can see the printer in the bluetooth manager, it is asigned to COM7 I have tried: SET PRINTER TO COM7 SET PRINT ON ? "PRUEBAS" ? SET PRINTER TO SET PRINT OFF It does not work. You wrote a mail about that but I cant conect. Thanks for your help. Jose Valle
Bluetooth dot matrix printer (star)
Jose, We are working on a sample of using the bluetooth that we are going to publish as soon as possible. Basically it has to be used as a COM port.
Bluetooth dot matrix printer (star)
Jose, We have already published a new FWPPC build with Bluetooth support. Please review samples\BlueToth.prg Please test it and let us know how it works there.
Bluetooth dot matrix printer (star)
Thanks Antonio. I will try that tomorrow. With this solved I can finish my aplication only a little bit late!!! For testing I have buy a bluetooth to printer conector (60€) and I use a dot matrix paralel printer. When sure I will buy Star in 12 Volts 60 cols 600€. (this is a littlr off topic but this is the only place I know for speaking about this) Jose Valle
Bluetooth dot matrix printer (star)
Jose, This is the right place to talk about this <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> I wait for your news,
Bluetooth dot matrix printer (star)
I try with Zebra QL 320 but it does not work Regards Maurizio
Bluetooth dot matrix printer (star)
Maurizio, Was the bluetooth connection properly set before testing it ? You have to manually do the bluetooth setup.
Bluetooth dot matrix printer (star)
Yes the bluetooth is properly setup , I use it with another programm and print OK Maurizio
Bluetooth dot matrix printer (star)
Hello: When I use the sample program it does not detect the printer. Using the bluetooth program I see the printer. But I can´t print in it. Using one program form HP I can send a file to the printer and it works I will test more things but I know almost nothing about bluetooth
Bluetooth dot matrix printer (star)
Jose, BlueTooth works as a standard COM port. OutPort is 8 and InPort is 7. If you do a: local hOut := BlueOut() MsgInfo( Str( hOut ) ) CloseComm( hOut ) then you should see the value of the handle of the port. Please try it and let us know what numeric value you get. Thanks.
Bluetooth dot matrix printer (star)
Hello I get -1 Thanks Antonio
Bluetooth dot matrix printer (star)
Jose, Could you check if your bluetooth out port is located at COM8: ?
Bluetooth dot matrix printer (star)
Hello Antonio I don´t have the pda here, but I thing that the output port was COM5: I will call my client and confirm you that. The pda is Symbol 8800 with codebar scanner and the printer Star with a paralel to bluetooth adaptor.
Bluetooth dot matrix printer (star)
Hello Antonio I get -1891664022 (change every time) IN COM 8 OUT COM 6 Regards Maurizio
Bluetooth dot matrix printer (star)
We have just published a new FWPPC build. In samples\bluetoth.prg, please change local hOut := BlueOut() into: #define GENERIC_WRITE 0x40000000 #define OPEN_EXISTING 3 #define FILE_ATTRIBUTE_NORMAL 0x00000080 ... local hOut := CreateFile( "COM6:",; // change the number as needed GENERIC_WRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) MsgInfo( Str( hOut ) ) // Lets see if we get a valid handle, not -1 ... and change CloseComm( hOut ) into CloseHandle( hOut ). Thanks for your feedback,
Bluetooth dot matrix printer (star)
Hello Antonio Thanks to your great help ,now works very well . It is possible to set hIn to ? Regards MAurizio <!-- w --><a class="postlink" href="http://www.nipeservice.com">www.nipeservice.com</a><!-- w -->
Bluetooth dot matrix printer (star)
Maurizio, Try this: #define GENERIC_READ 0x80000000 #define OPEN_EXISTING 3 #define FILE_ATTRIBUTE_NORMAL 0x00000080 ... local hIn := CreateFile( "COM8:",; // change the number as needed GENERIC_READ, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL )
Bluetooth dot matrix printer (star)
Thanks Antonio, now it works. When I started the aplication I was afraid of using a new product on an aplication with a so sort time limit. But now everything is ok
Bluetooth dot matrix printer (star)
Jose, We are glad to know we are moving forward <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Thanks to all of you for your feedback and support,
Bluetooth print and Special characters
Antonio My fwppc app writes on bluetooth printer. This works OK on HP 460 BT, the print goes OK but the special characters do not show. Printing to a text file and then manually printing the text file is OK. I wouls like to avoid this solution and have direct print with special charcaters. Any idea ? Has anyone succeeded printing special characters directly on bt from fwppc ? Thanks for the help Richard Here is a small sample of the code Sendblue( MemoRead(cfile)) // oemtoansi(cfile) does not do any change STATIC function SendText( hOut, cText ) local n FWRITE( HOUT, CTEXT + CRLF ) return nil STATIC FUNCTION SENDBLUE(ctext) LOCAL i, hOut DPTCOM := "COM" + STR(PKID->COMIMPRI,1) + ":" // DPTCOM := "COM6:" hOut := CreateFile( DPTCOM,GENERIC_REWRITE, 0, 0, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL ) IF hOut==-1 MsgStop("Port Impression non trouvé, Impression Impossible") ELSE FOR i = 1 TO Len( cText ) WriteByte( hOut, Asc(SubStr( cText, i, 1 ) ) ) NEXT CloseHandle( hOut ) ENDIF return nil
Bluetooth print and Special characters
Richard, What asc() values those special characters have ?
Bluetooth print and Special characters
Antonio They are standard accented french characters (like in spanish) i do not know the ascii character but i can display them it if necessary ex: "Désignation" The (é) is one of them. What is strange, is that my program writes first to an ascii file (txt) and then prints from the ascii file. The ascii file is perfect. If i print directly the ascii file to the printer (without fwppc), the printout is perfect ! I am puzzled. No one has ever tried to print local characters (spanish, portuguese,..etc) via bluetooth ? I can do all necessary tests if needed. Thanks for your help. Richard