Search found 53 matches: cast

Return to advanced search

Re: HB_FUNC() : wParam, lParam = 0,0 for Macro

hi Enrico,

Enrico Maria Giordano wrote:This is not tied to a particular compiler, this is the normal C cast (conversion to type).

i talk about Macro which "might" make Problem so HMG use SendMessage() which also work under FiveWin BCC / MSVC
by Jimmy
Sun Nov 06, 2022 2:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_FUNC() : wParam, lParam = 0,0 for Macro
Replies: 5
Views: 309

Re: HB_FUNC() : wParam, lParam = 0,0 for Macro

Jimmy wrote:
Code: Select all  Expand view
  SendMessage ( hWnd, LVM_*, (WPARAM) x, (LPARAM) y)


This is not tied to a particular compiler, this is the normal C cast (conversion to type).
by Enrico Maria Giordano
Sun Nov 06, 2022 1:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: HB_FUNC() : wParam, lParam = 0,0 for Macro
Replies: 5
Views: 309

Re: HMG 64 Bit Constante -> FiveWin ?

This code works for both 32/64 bits.

Include
#include <fwh.h> // from fwh\include

hWnd = ( HWND ) fw_parH( 1 );

This works with both 32 and 64 bits to return a HANDLE.
Cast to any HANDLE like (HWND), etc

Note: Use this for HANDLEs only.
by nageswaragunupudi
Sat Oct 22, 2022 3:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HMG 64 Bit Constante -> FiveWin ?
Replies: 23
Views: 1248

Re: Issue with FWH64/Harbour64/BCC7164 and Mysql.h file

... Compiler Version 19.29.30038.1 for x64 Copyright (C) Microsoft Corporation. All rights reserved. erp.c erp.prg(201): warning C4311: 'type cast': pointer truncation from 'MYSQL *' to 'long' erp.prg(201): warning C4302: 'type cast': truncation from 'MYSQL *' to 'long' erp.prg(208): warning ...
by Compuin
Thu Jul 01, 2021 6:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Issue with FWH64/Harbour64/BCC7164 and Mysql.h file
Replies: 61
Views: 4079

Re: Issue with FWH64/Harbour64/BCC7164 and Mysql.h file

... Compiler Version 19.29.30038.1 for x64 Copyright (C) Microsoft Corporation. All rights reserved. erp.c erp.prg(201): warning C4311: 'type cast': pointer truncation from 'MYSQL *' to 'long' erp.prg(201): warning C4302: 'type cast': truncation from 'MYSQL *' to 'long' erp.prg(208): warning ...
by Compuin
Thu Jul 01, 2021 5:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Issue with FWH64/Harbour64/BCC7164 and Mysql.h file
Replies: 61
Views: 4079

Re: Issue with FWH64/Harbour64/BCC7164 and Mysql.h file

... Compiler Version 19.29.30038.1 for x64 Copyright (C) Microsoft Corporation. All rights reserved. erp.c erp.prg(201): warning C4311: 'type cast': pointer truncation from 'MYSQL *' to 'long' erp.prg(201): warning C4302: 'type cast': truncation from 'MYSQL *' to 'long' erp.prg(208): warning ...
by Compuin
Thu Jul 01, 2021 12:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Issue with FWH64/Harbour64/BCC7164 and Mysql.h file
Replies: 61
Views: 4079

Re: Funciones C en Harbour

... a parameter as a pointer */ Si se usa será el propio compilador el que determine la memoria que ocupa el puntero, aunque no podrás evitar hacer cast. La función quedaría así directamente: HB_FUNC( ANIMOPEN ) // ( hWnd, cAviFileRes ) --> lResult{      hb_retl( ...
by xmanuel
Wed Feb 10, 2021 12:05 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Funciones C en Harbour
Replies: 19
Views: 1645

Re: Fast Report´s future

... do it ? all these problems have not been corrected can I move an object in a circular way? ( NO) another thing in ITALY I have to build a small castle that is a box where there are ive, the separation of ive with ER is impossible to do a long time ago I also asked TIMM directly without having ...
by Silvio.Falconi
Mon May 11, 2020 5:42 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Fast Report´s future
Replies: 56
Views: 6039

Re: Chromecast backgrounds RSS

... https://clients3.google.com/cast/chromecast/home https://lh4.googleusercontent.com/proxy/2TLVwcogEYo7Y5DX2F87TWbNFRYBcn4hZLfUHKNjsEBDLdN1zkW1_vJSJv4nwS_rdwrF74pnYF7KV-BkyLWNl3ggXctJbwdwv7NDk4WuddMwXgqsTULTHq4vsx2t=s1920-w1920-h1080-p-k-no-nd-mv ...
by Antonio Linares
Sun Apr 05, 2020 6:16 am
 
Forum: Off Topic / Otros temas
Topic: Chromecast backgrounds RSS
Replies: 10
Views: 4181

Re: Chromecast backgrounds RSS

I found an easy way to get all the photos that ChromeCast uses from its url: https://clients3.google.com/cast/chromecast/home Simply open it from Chrome, inspect it using F12 and select "network", click on "Preserve log" and wait...: https://github.com/FiveTechSoft/screenshots/blob/master/ChromeCastImages.PNG?raw=true ...
by Antonio Linares
Sun Apr 05, 2020 5:49 am
 
Forum: Off Topic / Otros temas
Topic: Chromecast backgrounds RSS
Replies: 10
Views: 4181

Error en fw_adoexporttodbf con campos autoincrementales

... del recordset, no el valor que originalmente se tenía grabado en la tabla, para solventarlo ha tenido que generar un campo adicional donde hago un Cast del campoIndex select *,cast(campoIndice as int) Dexri Solo así obtengo el valor real almacenado en la tabla, la pregunta es como podría ...
by mariordz
Fri Nov 29, 2019 7:23 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error en fw_adoexporttodbf con campos autoincrementales
Replies: 2
Views: 658

Re: Orientación para migración desde visual flagship

Muchas gracias Antono Linares, Buenas noches, hice lo que indicaste y funciono, pero, al compilar el ejemplo tutor04.prg me indico un error; decidi hacer todos los pasos de nuevo pero paso por paso, asi que edite el archivo Makefile e ir viendo cada uno ...
by alfaguilarz
Wed Nov 06, 2019 5:52 am
 
Forum: FiveLinux / FiveDroid (Android)
Topic: Orientación para migración desde visual flagship
Replies: 5
Views: 7965

Re: FiveLinux, Harbour en OpenSuse Leap 42.1 x86_64

... a ultima linha apresentar o seguinte erro: source/winapi/listboxes.c: In function ‘HB_FUN_LBXSETITEMS’: source/winapi/listboxes.c:68:61: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] gtk_object_set_data( GTK_OBJECT( listItem ), "index", ( gpointer ) ...
by jamil
Sun Mar 24, 2019 1:16 pm
 
Forum: FiveLinux / FiveDroid (Android)
Topic: FiveLinux, Harbour en OpenSuse Leap 42.1 x86_64
Replies: 8
Views: 2983

Re: SQLLITE tema de fecha RESUELTO

Hola amigos...
el tema de las fechas en SQLLITe lo solucione asi:

SELECT cast(fecha_lis as text) as listo FROM TABLALSSS

cast convierte el campo fecha_lis en un formato texto....

Salu2
by Willi Quintana
Thu Nov 30, 2017 2:42 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: SQLLITE tema de fecha RESUELTO
Replies: 1
Views: 742
Next

Return to advanced search