Search found 28 matches: longlong

Return to advanced search

Re: Using Microsoft AI Phi-2 from FWH

As I already wrote at the beginning of this thread, use LONGLONG instead of HB_LONGLONG.
by Enrico Maria Giordano
Sat Dec 30, 2023 9:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using Microsoft AI Phi-2 from FWH
Replies: 51
Views: 8418

Re: Using Microsoft AI Phi-2 from FWH

antonio o erro não acontece mais, inclui: #ifndef HB_LONGLONG #define HB_LONGLONG long #define hb_storvnll hb_stornl #endif agora o erro eh outro ao clicar em start DLL FUNCTION Llama( cModel AS LPSTR, cPrompt AS LPSTR, pFunc AS PTR ) AS VOID PASCAL LIB "llama64.dll" https://uploaddeim...
by jhnsnlb
Sat Dec 30, 2023 7:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using Microsoft AI Phi-2 from FWH
Replies: 51
Views: 8418

Re: Using Microsoft AI Phi-2 from FWH

#if defined( HB_OS_WIN ) && ! defined( __GNUC__ ) typedef __int64 HB_LONGLONG; typedef unsigned __int64 HB_ULONGLONG; #else typedef signed long long HB_LONGLONG; typedef unsigned long long HB_ULONGLONG; #endif Prueba a usar __int64 ó long long en vez de HB_LONGLONG que es lo que no te encue...
by Antonio Linares
Sat Dec 30, 2023 6:49 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Using Microsoft AI Phi-2 from FWH
Replies: 51
Views: 8418

Re: DLLCALL under Fivewin

...           nAttrib, ; // dwFlagsAndAttributes                            NULL )     // hTemplateFile  when change lpSecurityAttributes to LONG (LONGLONG) DLL FUNCTION CreateFile(lpFileName            AS LPSTR ,;                        dwDesiredAccess       AS DWORD ,;                    ...
by Jimmy
Fri Dec 02, 2022 3:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2779

Re: DLLCALL under Fivewin

Dear Jimmy, Please declare it this way: lpSecurityAttributes AS LONG or lpSecurityAttributes AS LONGLONG // for 64 bits When you call the function, that parameter will be LPSECURITY_ATTRIBUTES() as such parameter is declared by Microsoft like this: [in, optional] LPSECURITY_ATTRIBUTES ...
by Antonio Linares
Fri Dec 02, 2022 2:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLLCALL under Fivewin
Replies: 45
Views: 2779

Re: Campo autoincremental en DBF

... HB_FT_DOUBLE,8,d ADS_DOUBLE I; Integer,n HB_FT_INTEGER, 2 or 4 or 8 ADS_SHORTINT; ADS_INTEGER; ADS_LONGLONG ShortInt HB_FT_INTEGER,2 ADS_SHORTINT Longlong HB_FT_INTEGER,8 ADS_LONGLONG P; Image HB_FT_IMAGE,9 or 10 ADS_IMAGE W; Binary HB_FT_BLOB,4 or 9 or 10 ADS_BINARY Y; Money HB_FT_CURRENCY,8,4 ...
by carlos vargas
Tue Nov 01, 2022 11:48 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Campo autoincremental en DBF
Replies: 7
Views: 785

Re: TDolphin xHarbour - BCC 7.3 - FWH-20.07 - 32b.

Carlos,

Debajo de la línea 65 en function.c añade esto:

#define HB_LONGLONG LONGLONG


Antonio, perfecta tu guía como siempre.

Ya generé la librería. Gracias maestro.

Un fuerte abrazo
by Cgallegoa
Tue Apr 13, 2021 10:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TDolphin xHarbour - BCC 7.3 - FWH-20.07 - 32b.
Replies: 7
Views: 804

Re: TDolphin xHarbour - BCC 7.3 - FWH-20.07 - 32b.

Carlos,

Debajo de la línea 65 en function.c añade esto:

#define HB_LONGLONG LONGLONG
by Antonio Linares
Tue Apr 13, 2021 5:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TDolphin xHarbour - BCC 7.3 - FWH-20.07 - 32b.
Replies: 7
Views: 804

Re: DANIEL - TDolphin xHarbour - BCC 7.3 - FWH-20.07 - 32b.

Hola jose, gracias por tu respuesta. Bajé los archivos del repositorio que me indicas, e intenté generar la librería a 32 bits con xHarbour y BCC 7.3 utilizando el bat "setenvx.bat" (que viene del repositorio), pero tengo los siguientes errores y no se genera: # ---------------------------...
by Cgallegoa
Tue Apr 13, 2021 4:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TDolphin xHarbour - BCC 7.3 - FWH-20.07 - 32b.
Replies: 7
Views: 804

Re: int64_t equivalente en long

Carlos,

hb_retnll( ( HB_LONGLONG ) ... )
by Antonio Linares
Thu Dec 06, 2018 7:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: int64_t equivalente en long
Replies: 2
Views: 312

compilar TDolphin Harbour 3.4 alguien que me pueda orientar?

Hola! Alguien ha podido compilar TDolphing con msys64/cLang a 64 Bits.. me marca algunos errores y no logro crear la libreria :-( Harbour 3.4.0dev () (2017-12-20 13:40) Copyright (c) 1999-2017, https://github.com/vszakats/harbour-core/ Compiling 'E:\ToolsDeveloper\tdolphin\source\prg\tdolpexp.prg'.....
by gabo
Tue Dec 04, 2018 1:02 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: compilar TDolphin Harbour 3.4 alguien que me pueda orientar?
Replies: 4
Views: 1158

Re: DLL32 definition with double parameter type

Hi.
Now I have a compiler error :

main.prg(463) Warning W0001 Ambiguous reference: 'LONGLONG'
by Massimo Linossi
Sun Dec 17, 2017 7:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 definition with double parameter type
Replies: 23
Views: 2948

Re: DLL32 definition with double parameter type

... the decimals. Thanks a lot. Massimo Please, Can you try with? DLL32 Function AdsGetDouble (phTable AS LONG, pucFldName AS LPSTR, @ pdValue AS LONGLONG ) ; AS LONG PASCAL FROM "AdsGetDouble" LIB "ACE32.DLL"
by cnavarro
Sun Dec 17, 2017 7:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DLL32 definition with double parameter type
Replies: 23
Views: 2948

Re: Creando Estructuras TypeDef Struct como en C

Prueba a hacer esto:

pMem = hb_xgrab( 32 )

oFiscal:ImprimirTextoFiscal( pMem, "HOLA" )

y comprueba si sigue dando el argument error

#pragma BEGINDUMP

#include <hbapi.h>

HB_FUNC( HB_XGRAB )
{
hb_retnll( ( HB_LONGLONG ) hb_xgrab( hb_parnl( 1 ) ) );
}

#pragma ENDDUMP
by Antonio Linares
Fri Jun 30, 2017 5:09 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Creando Estructuras TypeDef Struct como en C
Replies: 22
Views: 2787

Re: MSVC 2017 Try

> conversi¢n de 'HB_LONGLONG' a 'DWORD'; posible p‚rdida de datos Al pasar de 32 bits a 64 bits, en vez de usar hb_parnl() hemos de usar hb_parnll() y en vez de hb_retnl() usar hb_retnll() Modifica esta línea: FILE * _iob[] = { stdin, stdout, stderr }; asi: static FILE * _iob[] = { stdin, stdout,...
by Antonio Linares
Sat Apr 15, 2017 6:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MSVC 2017 Try
Replies: 67
Views: 7872
Next

Return to advanced search