FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour FWH 64 25/06/2021 - setdate()
Posts: 563
Joined: Sun Oct 09, 2005 07:23 PM

FWH 64 25/06/2021 - setdate()

Posted: Tue Jun 29, 2021 05:26 AM
Al actualizarme a la versi贸n actual de FWH 64 me encuentro con los siguientes problemas con la funci贸n setdate():

Al construir el exe:
Code (fw): Select all Collapse
Linking with MSVC 2019...
hbct.lib(dattime3.obj) : warning LNK4006: HB_FUN_SETDATE ya se defini贸 en FiveH64.lib(XBRGETDT.obj); segunda definici贸n omitida
wintpv_64.exe : warning LNK4088: la imagen se est谩 generando debido a la opci贸n /FORCE; quiz谩 la imagen no se pueda ejecutar
* Application successfully built *


Pero al correr el mismo c贸digo que hasta ahora funcionaba bien:
Code (fw): Select all Collapse
setdate(day(NewDate),month(NewDate),year(NewDate))


Me arroja el error siguiente:
Code (fw): Select all Collapse
Application
===========
   Path and name: c:\CLIWIN\FW\miprog_64.exe (64 bits)
   Size: 6,333,952 bytes
   Compiler version: Harbour 3.2.0dev (r2011030937)
   FiveWin  version: FWH 21.04
   C compiler version: Microsoft Visual C 19.28.29335 (64-bit)
   Windows version: 6.2, Build 9200 

   Time from start: 0 hours 0 mins 2 secs 
   Error occurred at: 29-06-21, 07:25:04
   Error description: Error BASE/1092  Error de argumento: MIN
   Args:
     [   1] = D   31-12-99
     [   2] = N   21

Stack Calls
===========
   Called from:  => MIN( 0 )
   Called from: .\source\function\XBRGETDT.PRG => SETDATE( 0 )
   Called from: wintpv.prg => (b)MENUPPAL( 984 )
   Called from: .\source\classes\MENU.PRG => TMENU:COMMAND( 0 )
   Called from: .\source\classes\WINDOW.PRG => TWINDOW:COMMAND( 0 )
   Called from:  => TWINDOW:HANDLEEVENT( 0 )
   Called from: .\source\classes\WINDOW.PRG => _FWH( 0 )
   Called from:  => SYSREFRESH( 0 )
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FWH 64 25/06/2021 - setdate()

Posted: Tue Jun 29, 2021 09:31 AM

Paz,

La funci贸n SetDate() que hay dentro de FWH\source\function\xbrgetdt.prg hay que hacerla static

Vamos a reconstruir FWH 64 y te enviamos las nuevas libs

muchas gracias por tu feedback

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FWH 64 25/06/2021 - setdate()

Posted: Tue Jun 29, 2021 09:43 AM

Enviadas las libs por wetransfer

Quedamos a la espera de tus resultados :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 563
Joined: Sun Oct 09, 2005 07:23 PM

Re: FWH 64 25/06/2021 - setdate()

Posted: Tue Jun 29, 2021 11:35 AM
Buenas tardes Antonio,
A pesar que en el linkado arroja los dos warnings siguientes la funci贸n setdate(nD铆a, nMes, nA帽o) ya funciona bien, eso si,hay que ejecutar la aplicaci贸n como adminstrador.

warnings:
Code (fw): Select all Collapse
Linking with MSVC 2019...
hbct.lib(dattime3.obj) : warning LNK4006: HB_FUN_SETTIME ya se defini贸 en FiveHC64.lib(DATETIME.obj); segunda definici贸n omitida
hbct.lib(dattime3.obj) : warning LNK4006: HB_FUN_SETDATE ya se defini贸 en FiveHC64.lib(DATETIME.obj); segunda definici贸n omitida
wintpv_64.exe : warning LNK4088: la imagen se est谩 generando debido a la opci贸n /FORCE; quiz谩 la imagen no se pueda ejecutar
* Application successfully built *
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: FWH 64 25/06/2021 - setdate()

Posted: Tue Jun 29, 2021 12:18 PM

muy bien

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion