FWH 64 25/06/2021 - setdate()

FWH 64 25/06/2021 - setdate()

Postby Verhoven » Tue Jun 29, 2021 5: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: Select all  Expand view
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: Select all  Expand view
setdate(day(NewDate),month(NewDate),year(NewDate))


Me arroja el error siguiente:
Code: Select all  Expand view
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 )
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

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

Postby Antonio Linares » Tue Jun 29, 2021 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 41436
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby Antonio Linares » Tue Jun 29, 2021 9:43 am

Enviadas las libs por wetransfer

Quedamos a la espera de tus resultados :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41436
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby Verhoven » 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: Select all  Expand view
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 *
 
Verhoven
 
Posts: 505
Joined: Sun Oct 09, 2005 7:23 pm

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

Postby Antonio Linares » Tue Jun 29, 2021 12:18 pm

muy bien
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41436
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 28 guests