FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Problemas al migrar desde FWH2012 a FWH2307 - cerrado
Posts: 230
Joined: Thu Sep 17, 2015 11:40 PM
Re: Problemas al migrar desde FWH2012 a FWH2307
Posted: Wed Sep 20, 2023 04:44 PM
efectivamente ya no sale en error con el xharbour. Muy agradecido. Luego sigo con la los problemas de la migracion de la version me interesa usar el potencial de la version 2023.07 del fivewin.
Carlos Atuncar - CaSoftSystem
Chincha - Perú
+51983478218
carlosalbatun@gmail.com
Posts: 230
Joined: Thu Sep 17, 2015 11:40 PM
Re: Problemas al migrar desde FWH2012 a FWH2307
Posted: Tue Oct 31, 2023 10:23 PM

Saludos devuelta retomando el tema parece que encontre el origen del problema y parece ser que es causado por la funcion Hb_DirExists()

al usarlo en mi INIT Procedure PrgInit donde reviso si existen algunas carpetas para crearlas a la siguiente linea si uso la funcion FILE ya no ubica pero antes de esto si

Que Solucion puede tener

Carlos Atuncar - CaSoftSystem
Chincha - Perú
+51983478218
carlosalbatun@gmail.com
Posts: 230
Joined: Thu Sep 17, 2015 11:40 PM
Re: fivewin 2023/07 y 2020/12 problemas al crear EXE
Posted: Tue Oct 31, 2023 10:29 PM
Enrico Maria Giordano wrote:
He probado con Bcc7.60 y xHarbour 1.2.3 Intl. (SimpLex) (Build 20221118) la version FW 12.2020 y todo pasa con normalidad tambien he probado la version FW 07.2023 y el problema persiste no he podido probar con xHarbour 1.3.0 Intl. (SimpLex) (Build 20230826)
por que con ambas versiones genera este error
Error: Unresolved external 'utime(const char *, utimbuf *)' referenced from E:\TOOLS\XHARBOUR_BCC74A\LIB\HBZIP.LIB|zipplatform
Estimado Carlos, puede mostrar un pequeno PRG de ejemplo? Desculpa mi Espanol. :-)
al usar function Hb_DirExists() la funcion FILE() ya no ubica ningun archivo si no se pone la ruta completa antes de usar esta funcion si ubica con tan solo poner el nombre del archivo
Carlos Atuncar - CaSoftSystem
Chincha - Perú
+51983478218
carlosalbatun@gmail.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problemas al migrar desde FWH2012 a FWH2307 - cerrado
Posted: Tue Oct 31, 2023 10:53 PM
Works fine here:
Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    ? 2, FILE( "MYTEST.TXT" )

    RETURN NIL


INIT FUNCTION TEST()

    MEMOWRIT( "MYTEST.TXT", "", .F. )

    ? 1, FILE( "MYTEST.TXT" )

    RETURN NIL
Posts: 230
Joined: Thu Sep 17, 2015 11:40 PM
Re: Problemas al migrar desde FWH2012 a FWH2307 - cerrado
Posted: Tue Oct 31, 2023 11:16 PM
Enrico Maria Giordano wrote:Works fine here:
Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    ? 2, FILE( "MYTEST.TXT" )

    RETURN NIL


INIT FUNCTION TEST()

    Hb_DirExists("c:\temp")

    MEMOWRIT( "MYTEST.TXT", "", .F. )
 
    ? 1, FILE( "MYTEST.TXT" )

    RETURN NIL
agregando Hb_DirExists() comienza las fallas
Carlos Atuncar - CaSoftSystem
Chincha - Perú
+51983478218
carlosalbatun@gmail.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Problemas al migrar desde FWH2012 a FWH2307 - cerrado
Posted: Wed Nov 01, 2023 04:44 PM
You can use LISDIR():
Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    ? 2, LISDIR( "MYTEST" )

    RETURN NIL


INIT FUNCTION TEST()

    MAKEDIR( "MYTEST" )

    ? 1, LISDIR( "MYTEST" )

    RETURN NIL
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: Problemas al migrar desde FWH2012 a FWH2307 - cerrado
Posted: Wed Nov 01, 2023 05:00 PM
Intenta con:
Code (fw): Select all Collapse
HB_FNAMESPLIT()
ó:
aFindFile()
Saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Problemas al migrar desde FWH2012 a FWH2307 - cerrado
Posted: Wed Nov 01, 2023 05:38 PM
al usar function Hb_DirExists() la funcion FILE() ya no ubica ningun archivo si no se pone la ruta completa antes de usar esta funcion si ubica con tan solo poner el nombre del archivo
This is due to a bug in hb_DirExists() function.
Fixed now and will be available in FWH2310 to be released in a day or two.
Meanwhile, you can use other functions with the same functionality eg. lIsDir() as suggested by Mr, Enrico
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion