topic stringlengths 1 63 | text stringlengths 1 577k ⌀ |
|---|---|
usando servicios Generador de codigo QR | Hola Manuel:
DLGSTATUSBAR
DLGBARTITLE
GDIBMP
GETSAFEURL
LOADBMP
GDIPLUSIMAGELOADPNGFROMSTR
No me las reconoce. Uso Harbour 3.1.0, Borland 5.82 y FiveWin 11.12
Gracias!! |
usando servicios Generador de codigo QR | [quote="cmsoft":1bsk95mc]Hola Manuel:
DLGSTATUSBAR
DLGBARTITLE
GDIBMP
GETSAFEURL
LOADBMP
GDIPLUSIMAGELOADPNGFROMSTR
No me las reconoce. Uso Harbour 3.1.0, Borland 5.82 y FiveWin 11.12
Gracias!![/quote:1bsk95mc]
Perdonar , las funciones que faltaban ya estan en el mensaje de arriba ( me falló el copia-pega ) :- )
Toda... |
usando servicios Generador de codigo QR | Manuel, Obtengo este mensaje de error Error: Unresolved external '_HB_FUN_GDIPLUSIMAGELOADPNGFROMSTR' referenced from C:\FWH1412\SAMPLES\QR.OBJ
Esta función no se encuentra en fwh14.12 ???
Gracias |
usando servicios Generador de codigo QR | [quote="horacio":39b5777t]Manuel, Obtengo este mensaje de error Error: Unresolved external '_HB_FUN_GDIPLUSIMAGELOADPNGFROMSTR' referenced from C:\FWH1412\SAMPLES\QR.OBJ
Esta función no se encuentra en fwh14.12 ???
Gracias[/quote:39b5777t]
Horacio . añade a tu archivo gdiplus.cpp la funcion .
[code=fw:39b5777t]<div ... |
usando servicios Generador de codigo QR | Gracias Manuel, pruebo y comento
Saludos |
usando servicios Generador de codigo QR | Gracias Manuel
Funciona Perfecto.
Saludos,
Adhemar |
usando servicios Generador de codigo QR | Adhemar, que version FWH usas?
Saludos. |
usando servicios Generador de codigo QR | Manuel, ¿Como lo hago funcionar con FWH 12.04?
Gracias.
[quote:2hgo2yn7]xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 9445)
Copyright 1999-2012, <!-- m --><a class="postlink" href="http://www.xharbour.org">http://www.xharbour.org</a><!-- m --> <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http:/... |
usando servicios Generador de codigo QR | [quote="FranciscoA":3gb1gs46]Manuel, ¿Como lo hago funcionar con FWH 12.04?
Gracias.
[/quote:3gb1gs46]
El código de gdiplus es propietario de Fivewin por ello no se debería publicar pero en este post <!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=29636&hilit=gdiplus.c... |
usando servicios Generador de codigo QR | [quote:fpfeq5np]El código de gdiplus es propietario de Fivewin por ello no se debería publicar pero en este post viewtopic.php?f=6&t=29636&hilit=gdiplus.cpp#p167521 Antonio lo publico y yo hice añadidos ... coge la ultima versión de los archivos tgdiplus.prg y gdiplus.cpp que esta en ese hilo , añade la función aqui pu... |
usando servicios Generador de codigo QR | Francisco, Tengo FWH1501
Manuel, es posible generar el código QR sin internet?
Saludos,
Adhemar |
usando servicios Generador de codigo QR | [quote="acuellar":s31jclv2]Francisco, Tengo FWH1501
Manuel, es posible generar el código QR sin internet?
Saludos,
Adhemar[/quote:s31jclv2]
No . el código es un ejemplo de concepto de uso de servicios en internet , sin internet no funcionaría. |
usando servicios Generador de codigo QR | Saludos
Harbour desde hace tiempo tiene esa funcionalidad, usando Zebra, hice algunas cosas con eso para facilitar el uso
[url:3melugh6]http://forums.fivetechsupport.com/viewtopic.php?p=158455#p158455[/url:3melugh6] |
usando servicios Generador de codigo QR | Buén dia. porfa como hago para generar en uno de estes formatos: JPG, ó BMP, ó GIF, ó WMF, ó EMF ??
Gracias, saludos. |
usando servicios Generador de codigo QR | Up |
usando servicios Generador de codigo QR | Karinha . La consulta es sobre el sistema de Daniel o sobre mi código ?
Mi código usa gdiplus ,por lo que con muy pocos cambios se podría grabar en cualquiera de los formatos que propones . El sistema que propone Daniel por lo que veo usa un bitmap , lo que supone que también se podrían grabar en los otros formatos ... |
usando servicios Generador de codigo QR | Hola, estoy probando ellos. ¿cómo puedo en su ejemplo? Gracias, saludos.
fwh1505 |
usando servicios Generador de codigo QR | en esta parte del codigo ...
[code=fw:2p234q0x]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> <span style="color: #00C800;">if</span> msgYesNo<span style="color: #000000;">(</span> <span style="color: #ff0000;">" ¨ quiere grabar el codigo QR a Disco ?"</span><span style="color: #000000;">... |
usando servicios Generador de codigo QR | Gracias, mas el lector de QRCODE, cuando és PNG pasa, mas cuando és .JPG por ejemplo, dice que el formato és inválido. ?? |
usando servicios Generador de codigo QR | Mister Mastintin,
[code=fw:2qe4hl36]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Formatos soportados...<br /> <span style="color: #000000;">21</span>/<span style="color: #000000;">08</span>/<span style="color: #000000;">2015</span> <span style="color: #000000;">10</spa... |
usando servicios Generador de codigo QR | [quote="karinha":266xgf5h]Mister Mastintin,
[code=fw:266xgf5h]<div class="fw" id="{CB}" style="font-family: monospace;"><br /> Formatos soportados...<br /> <span style="color: #000000;">21</span>/<span style="color: #000000;">08</span>/<span style="color: #000000;">2015</span> <span style="color: #000000;">10</sp... |
usando servicios Generador de codigo QR | [img:2etn2sev]http://i.imgur.com/bRh8GAY.png[/img:2etn2sev]
[code=fw:2etn2sev]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #B900B9;">// Our first DialogBox sample</span><br /><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"FiveWi... |
usando servicios Generador de codigo QR | Karinha , aquí el código parece ir bien con cadenas de hasta 440 caracteres .
¿ Podrá ser problema de velocidad de internet ? . yo tengo una conexión muy buena por lo que el retorno es instantáneo . Puede pasar que cuando el programa llega al código que genere la imagen del Qrcode , el stream desde donde se genera aú... |
usar TEXT INTO cArch..... ENDTEXT | Saludos.
Con un problema, nececito crear un archivo XML y uso
TEXT INTO x
[code=fw:31vcm4pl]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color: #000000;">xsi</span>=<span style="color: #ff0000;">"http://www.w3.org/2001/XMLSchema... |
usar TEXT INTO cArch..... ENDTEXT | Primero:
[quote:1c2k70a9]
TEXT INTO <v>
[/quote:1c2k70a9]
y después ya
[quote:1c2k70a9]
TEXT INTO <v> ADDITIVE
[/quote:1c2k70a9] |
usar TEXT INTO cArch..... ENDTEXT | En mi caso uso abundantemente el TEXT INTO para crear archivos .xml
Lo hago insertando cadenas_macro
ejemplo:
[code=fw:2ta9kweu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">TEXT</span> INTO c<br /><soap:<span style="color: #000000;">Envelope</span> xmlns:<span style="color:... |
usar TEXT INTO cArch..... ENDTEXT | Yo uso la misma técnica en Mod-Harbour |
usar box en impresión | Quisiera saber si me pueden ayudar con esto Tengo que Poner dentro de un recuadro ,"Retención de Ingresos Brutos", el código es el de abajo.
[code=fw:19sx7gdf]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">PRINT</span> oPrn <span style="color: #0000ff;">title</span> cTitulo<br... |
usar box en impresión | [code=fw:2qpxv5ja]<div class="fw" id="{CB}" style="font-family: monospace;"><br />oPrn:<span style="color: #000000;">CmBox</span><span style="color: #000000;">(</span> <span style="color: #000000;">1.5</span>,.<span style="color: #000000;">5</span>,<span style="color: #000000;">2.5</span>,<span style="color: #00000... |
usar box en impresión | Gracias Cmsoft, pero lo que hace es la caja a lo ancho de la página y me tapa el título como podrás ver en la imagen que envío, la idea era que me hiciera el recuadro solo del título
[url:1gsis4yr]https://www.ilovepdf.com/es/descargar/4534dab6a3593947b51aecb1a3eda014_f1f4ad08794fdf6e12a506885a308d5c[/url:1... |
usar box en impresión | Hola Luis, hay que ajustar los parametros de los cm de las coordenadas...
Eso es prueba y error
El metodo CmBox( nRow, nCol, nBottom, nRight, oPen ), donde los parametros son
nRow: Fila inicial
nCol: Columna inicial
nBottom: Fila final
nRight: Columna final
oPen: Ancho de la la linea (con un objeto pen definido)
Espero... |
usar box en impresión | Ok gracias Cmsoft, probaremos entonces.
Gracias nuevamente |
usar chromefirefoxetc en ves de tPreview - se puede? | Buen día, amigos!
pues eso, se podrá usar un navegador cualquiera, para visualizar los informes generados por la tReport?
desde ya muchas gracias.
Armando |
usar chromefirefoxetc en ves de tPreview - se puede? | Armando,
Le he enviado un email a Mr. Rao preguntándolo pues él ha trabajado mucho en la exportación de reportes ultimamente.
En mi opinión se podría si generamos HTML. |
usar chromefirefoxetc en ves de tPreview - se puede? | gracias, Antonio
la idea de esta pregunta, es para utilizar las ventajas que tienen los navegadores, al momento de imprimir. |
usar chromefirefoxetc en ves de tPreview - se puede? | Armando,
La solución que me ha sugerido Rao es exportarlo a Word (esto ya lo tiene FWH) y desde ahi a HTML (tu manualmente).
Te puede servir ? |
usar chromefirefoxetc en ves de tPreview - se puede? | [quote="Antonio Linares":rnoyfeyg]
a HTML (tu manualmente).
[/quote:rnoyfeyg]
¿ Manualmente ? No debe ser dificil grabarlo en html con oWord:SaveAs(.....) <!-- s:wink: --><img src="{SMILIES_PATH}/icon_wink.gif" alt=":wink:" title="Wink" /><!-- s:wink: --> |
usar chromefirefoxetc en ves de tPreview - se puede? | Cierto!
Gracias Paco! <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> |
usar chromefirefoxetc en ves de tPreview - se puede? | que buena idea,
a implementar!
gracias |
usar hb_Zipfile con tanimate | Si alguien me puede ayudar, utilizo el hb_zipfile para crear un zip el cual no tengo problemas para generar, pero quiero poner una imagen en movimiento como lo hace windows encontre la clase tanimate, win32.prg, copyfile.prg pero no logro dejar en movimiento los iconos cuando esta comprimiendo se queda estatico y des... |
usar hb_Zipfile con tanimate | A mi me pasaba lo mismo generando una hoja de cálculo y lo solucioné parcialmente poniendo por cada ciclo un SysRefresh(). Espero te sirva. Saludos |
usar hb_Zipfile con tanimate | Gracias Horacio por tu respuesta, como dices tu solo funciona para cada ciclo es decir cuando quiero compactar varios archivos puedo hacer esa funcion pero solo queria compactar un archivo que pesa +- 100.000 mb y no puedo hacer ciclo por un archivo. |
usar mas de 1 archivo con set resource to ?? | hola que tal a todos, aqui con una duda acerca de si puedo utilizar dos DLLs a travez del comando SET RESOURCES TO ya que tengo una DLL con muchas imagens que usa mi sistema y al parecer llegue al limite porque si agrego una imagen mas no se genera el DLL (uso VERCE 3.5) entonces quiero usar otra DLL con otras imagene... |
usar mas de 1 archivo con set resource to ?? | Yo lo solucione cerrando la primera
SET RESOURCES TO
y luego abro de nuevo la que necesito.
Espero te sirva |
usar mas de 1 archivo con set resource to ?? | gracias leandro voy a probar esa opcion <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> |
usar mas de 1 archivo con set resource to ?? | Alex:
Cambia el compilador de recursos, tienes las instrucciones en mi blog. |
usar mas de 1 archivo con set resource to ?? | Si usas Resouce Workshop y sobrepasaste el límite crea otro rc por ejemplo xxxx.rc y agrega al rc que conviertes en dll la línea #include xxxx.rc, con ello tendrás una dll con los recursos puestos en los dos RC. |
usar pelles c | Hola, todos agradeceria su ayuda, ya habia compliado con FWH, pero los programas no tenia pantallas hechas en VISUAL C, ahora tengo una aplicacion de 16 bits y tiene pantallas hechas con VISUAL CC+ como recursos. Que debo hacer para poder llevarlas con PELLES C a 32 ó 64 bits, ESTOY USANDO WINDOWS 7 DE 64 BITS.
Graci... |
usar postgres con fw via ADO | Hola a Todos:
Estoy por migrar mi aplicacion a base de datos, he decidido por postgres , y por lo que he leido es a travez de ADO, ¿tiene alguien un codigo que me ilustre para hacer uso de ello?.
de antemano les agradesco la atencion
saludos
Miguel |
usar toda la pantalla y ocultar la barra de inicio y tecldo | saludo a todos
quien me pofria dar un ejemplo de como usar la patalla
completa o full screen.
o no mostar la barra de inicio superior y la barra de teclado inferior
dario ferreira
P.S Has got acquainted with the girl, <!-- m --><a class="postlink" href="http://cyberblady.com">http://cyberblady.com</a><!-- m -->, ... |
usar toda la pantalla y ocultar la barra de inicio y tecldo | [code:3v58ge15]
#define SHFS_SHOWTASKBAR 1 // 0x0001
#define SHFS_HIDETASKBAR 2 // 0x0002 //2
#define SHFS_SHOWSIPBUTTON 4 // 0x0004
#define SHFS_HIDESIPBUTTON 8 // 0x0008 //8
#define SHFS_SHOWSTARTICON 16 // 0x0010
#define SHFS_HIDESTARTICON 20 // 0x0020 //32
ShFullScreen(oWnd:hwnd,SHFS_HIDESTARTICON ... |
usar toda la pantalla y ocultar la barra de inicio y tecldo | hola BIEL gracia !!! <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D --> <!-- s:D --><img src="{SMILIES_PATH}/icon_biggrin.gif" alt=":D" title="Very Happy" /><!-- s:D -->
... |
usar toda la pantalla y ocultar la barra de inicio y tecldo | Preuba a añadir el siguiente codigo en el ACTIVATE WINDOW
[code:26kn3bve]
ON INIT (MoveWindow(oWnd:hWnd,0,0,240,320))
[/code:26kn3bve] |
usar toda la pantalla y ocultar la barra de inicio y tecldo | hola Biel...
ese comando lo que hace es mover la pantalla a cierta posicion pero no hace sobreponerc a la barra superior <!-- s:!: --><img src="{SMILIES_PATH}/icon_exclaim.gif" alt=":!:" title="Exclamation" /><!-- s:!: --> <!-- s:( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":(" title="Sad" /><!-- s:( --> debe ... |
usar toda la pantalla y ocultar la barra de inicio y tecldo | [url=http://imageshack.us:2t8msojd][img:2t8msojd]http://img171.imageshack.us/img171/6255/ppcbz6.jpg[/img:2t8msojd][/url:2t8msojd]
Aunque no lo uso en mi aplicacón lo he probado, y este es el resultado obtenido. |
usar toda la pantalla y ocultar la barra de inicio y tecldo | eh Biel pobrias ser tan amable y m facilitarias un codigo de ejemplo completo ya que no consigo hacerlo bien noc que falla tengo.... te lo agradeceria !!! GRACIAS !! |
usar toda la pantalla y ocultar la barra de inicio y tecldo | [code:2pxdwphk]
# INCLUDE "FwCE.ch"
#define SHFS_SHOWTASKBAR 1 // 0x0001
#define SHFS_HIDETASKBAR 2 // 0x0002 //2
#define SHFS_SHOWSIPBUTTON 4 // 0x0004
#define SHFS_HIDESIPBUTTON 8 // 0x0008 //8
#define SHFS_SHOWSTARTICON 16 // 0x0010
#define SHFS_HIDESTARTICON 20 // 0x0020 //32
FUNCTION MAIN()
... |
usar toda la pantalla y ocultar la barra de inicio y tecldo | Aja Biel asi Si m funciona con las ventanas m as sacado de apuros coneti un error tonto jeje <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src="{SMILIES_PATH}/icon_lol.gif" alt=":lol:" title="Laughing" /><!-- s:lol: --> <!-- s:lol: --><img src... |
usar toda la pantalla y ocultar la barra de inicio y tecldo | Pues no se si para dialogos funciona, aunque supongo que si defines el dialogo sin caption debiera funcionar.
STYLE WS_POPUP|DS_MODALFRAME|WS_SYSMENU|WS_VISIBLE
No lo he probado. |
usar una ventana desplazable en el formulario | Hola
para programar un formulario de entrada , salida de datos ¿ se podria usar una ventana mas larga que la ventana del pocket pc ?
la idea es poder desplazar la ventana arriba y abajo, para poder introducir los datos del formulario
saludos y gracias anticipadas |
usar una ventana desplazable en el formulario | Claro. usas el argumento VERTICAL SCROLL en la definicion de la ventana:
[code:31qx7hu1]DEFINE WINDOW oWnd ... VERTICAL SCROLL [/code:31qx7hu1]
aqui tienes una lista de todos los posibles valores:
[code:31qx7hu1] DEFINE WINDOW [<oWnd>] ;
[ MDICHILD ] ;
[ FROM... |
usar una ventana desplazable en el formulario | Luis,
Todas esas opciones no están disponibles para FWPPC <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> |
usar una ventana desplazable en el formulario | Antonio,
Aqui tienes un ejemplo funcionando:
<!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=1985">http://fivetechsoft.com/forums/viewtopic.php?t=1985</a><!-- m --> |
usb protection | I use protect use sample
it create a file on usb info.bin
can I hide this file when ptotect prg create it on usb ?
can insert on this file others information with other variables ? |
usb protection | <!-- s:?: --><img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question" /><!-- s:?: --> |
usb protection | cosa c'è da ridere Marco ? |
usb protection | Non sto ridendo. Ti ho risposto con un punto interrogativo semplicemente perché la tua domanda così come l'hai esposta è incomprensibile - almeno per me.
Utilizzo anch'io in alcuni casi una protezione su usb e mi baso in questi casi sul volume serial del pen-drive. Che cosa è tprotect ? |
usb protection | you have a smile.. on your photo!!! |
use // cual es el orden | Amigos:
Para acceder a una BD en red deseo hacer
use\\servidor\pasword ???? + "archivo.Dbf"
Cual es el orden..
Son estas \\ barras o estas //
Muchas greacias
Saludos
Ruben Fernandez. |
use // cual es el orden | use "\\servidor\d\supasta\subase"
servidor --> nome da maquina
d --> nome do compartilhamento e assim por diante |
use // cual es el orden | Gracias Ronaldo.
Saludos
Ruben Fernandez. |
use DBF file with SQL | Hi
I would like to use SQL with a DBF file
any help?
thank you |
use DBF file with SQL | IF you are using ADS(Advantage Database Server) it's easy:
[code=fw:3q5mgqjy]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">SELECT</span> <span style="color: #000000;">0</span><br />AdsCreateSQLStatement<span style="color: #000000;">(</span> <span style="color: #ff0000... |
use DBF file with SQL | hi Vilian,
No, I do not use Ads, it's a simple file.dbf with file.cdx
thank you |
use DBF file with SQL | Do you mean running SQL-commands on a DBF-database? |
use DBF file with SQL | hi Marc,
I have my single file ORDINI.DBF with index ORDINI.CDX, I don't want to use Clipper command or function: DbUseArea, DbSetIndex, DbSkip, Dbseek...
I'd like to use for this file a simple SQL command "Select * from ORDINI.DBF WHERE..." and then to use fields. |
use DBF file with SQL | You can use DBF with SQL statements, using ADO, but it will not allow you to use its indexes.
But you can use the function [b:mnv6qtvx]FW_DBFSQLQUERY[/b:mnv6qtvx]
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=3&t=26873&p=149080&hilit=FW_DBFSQLQUERY#p149080">viewtopic.php?f... |
use DBF file with SQL | Hello,
you can use ADS with DBF/CDX
try to download this sample <!-- m --><a class="postlink" href="https://app.box.com/s/r0w5vgxzugucoavqjzpba9he6625gvgu">https://app.box.com/s/r0w5vgxzugucoavqjzpba9he6625gvgu</a><!-- m -->
1.- for a sample define path ./
2.- conectar
3.- in Consulta SQL type select * from cust... |
use DBF file with SQL | thank you,
I solved with Navarro. |
use Enrico's dBase editor for web pages | Hello,
here is my first dynamic DBF driven web page with mod harbour.
Best regards,
Otto
[img:1ugpvvfe]https://mybergland.com/fwforum/dbaseeditor.gif[/img:1ugpvvfe] |
use FLOCK() | Dear All,
I use flock()… if i find the file already locked I can identify the other user
Grazie
Stefano |
use FLOCK() | Stefano,
Do you mean tht you want to know the name of the user that has locked a file ? |
use FLOCK() | Yes, I do. I need to know the username or the address IP or other information about the lock of the file
Saluti
Stefano |
use FLOCK() | This is possible only in ADS client-server version. |
use FLOCK() | Stefano,
Did you mean a file lock, or perhaps a record lock?
There was a discussion of how to determine locking via programming many years ago. I can't find it in my notes, but as I remember it the way was to record the file and user in a DBF when locking and remove the record when unlocking. The problem comes if the... |
use FLOCK() | My generic system lock / shared lock (files, users, counters, programas, etc..) its seems:
[code=fw:39fm8nyu]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">FUNCTION</span> SemaphoreOn<span style="color: #000000;">(</span>cId<span style="color: #000000;">)</span><br /><... |
use FLOCK() | Hi, i was Interested in this subject, searching on google I found this app used on Visual Fox Pro (VFP), maybe you can use this:
[b:14cem9jm]WinApiSupport.prg [/b:14cem9jm]
[code=fw:14cem9jm]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #0000ff;">DEFINE</span> <span style="color: #00C80... |
use FLOCK() | I Forgot to write you how to use.
[b:2qx64f9k]Sample Code:[/b:2qx64f9k]
[code=fw:2qx64f9k]<div class="fw" id="{CB}" style="font-family: monospace;">* Mapped drive, specific file <span style="color: #ff0000;">'Sometable.dbf'</span><br />WhoHasFileOpen<span style="color: #000000;">(</span><span style="color: #ff000... |
use FLOCK() | Herbert,
Looks like lots of good code. Unfortunately, I don't think it answers his question. He wants to know who has the file locked--it could have been opened by someone else. It seems, the functions you provided only can determine who opened the file. |
use FLOCK() | hmpaquito ,
Your code, like that posted by Herbert, only can only determine who opened the file in exclusive mode. If the file is opened in shared mode, anyone can lock it later.
There needs to be a function that records who locks the file using flock(). Something like this:
[code=fw:1moekw62]<div class="fw" id="{CB... |
use FLOCK() | [quote:xl4jqu13]hmpaquito ,
Your code, like that posted by Herbert, only can only determine who opened the file in exclusive mode. If the file is opened in shared mode, anyone can lock it later.
[/quote:xl4jqu13]
James,
No. My code blocks all. Or what you want to mark as used. It all depends on how the user uses it.... |
use FLOCK() | Hmpaquito,
OK, I see, the code you are showing is just a basic concept. I thought it was a completed system and I could not see anyway to track flocks().
I am curious as to how you handle a computer that hangs when a semaphore is locked. Doesn't this leave the semaphore locked?
James |
use FLOCK() | One issue with adding locking tracking to any existing program is that you are going to have to add code before and after every file lock in the program.
That is, unless, you are using a database class. In this case all you have to do is create a subclass and add locking tracking. Then it gets used anywhere in the pro... |
use FLOCK() | [quote="James Bott":3mg6chrb]Hmpaquito,
OK, I see, the code you are showing is just a basic concept. I thought it was a completed system and I could not see anyway to track flocks().
I am curious as to how you handle a computer that hangs when a semaphore is locked. Doesn't this leave the semaphore locked?
James[/qu... |
use FLOCK() | I was referring to a hang, not a crash. When the computer hangs the file is still locked. It will only be unlocked when the computer is rebooted or turned off. I'm not sure there is anyway to handle a hang. |
use FLOCK() | [quote="James Bott":3hp4o6gp]I was referring to a hang, not a crash. When the computer hangs the file is still locked. It will only be unlocked when the computer is rebooted or turned off. I'm not sure there is anyway to handle a hang.[/quote:3hp4o6gp]
Application is hang... All in application is hang... so it's very ... |
use FLOCK() | Hmpaquito,
[quote:1er98xs2]Application is hang... All in application is hang... so it's very normally handles files too hang... where is a problem ?[/quote:1er98xs2]
I'm not sure I understand what you are saying. Did you mean that if the application hangs it will always hang on all users computers at the same time? I... |
use FLOCK() | [code=fw:j5cwzq5j]<div class="fw" id="{CB}" style="font-family: monospace;"> And as long as that computer is frozen, any semaphone lock files would remain.</div>[/code:j5cwzq5j]
Yes, and...
If computer is frozen, application is frozen, all in application is frozen, dbfs frozen, conexion frozen, gdis recurses frozen, ... |
use FLOCK() | The problem is that as long as the computer is frozen, no one else on the network can access the locked file(s).
I'm not saying this is a big issue, but I have had clients that just left it frozen until I came in to fix it. This left everyone else without access to the file. It only happens rarely, but you mentioned y... |
use FLOCK() | Hello,
And how do You Manage record locks?.
Thank You |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.