Página 1 de 1

Iniciando Xailer 3 con harbour

Publicado: Sab Mar 09, 2013 11:24 pm
por PEDRO DE LEON RODAS[3]
Saludos a todos.
Pues ya estoy iniciando las pruebas con Xailer 3 y Harbour, pero me encontre
con los primeros detalles.
Alguien me puede ir orientando en este traslado de xHarbour a Harbour ?
De antemano les agradesco.
Al compilar un pequeño sistema que tengo me da los siguientes errrores,
antes les menciono que tengo codigo c, que amablemente me han proporcionado
en este foro.
Esto es el resultado de la compilacion.
Compilando KS_ORIHUELA.prg...
Compilando PRINCIPAL.prg...
Compilando KS_ORIHUELA.rc...
Compilando NUEVO_AGENTE.prg...
KS_ORIHUELA.prg:200:3: error: unknown type name 'FLASHWINFO'
KS_ORIHUELA.prg:202:5: error: request for member 'cbSize' in something not a
structure or union
KS_ORIHUELA.prg:202:23: error: 'FLASHWINFO' undeclared (first use in this
function)
KS_ORIHUELA.prg:202:23: note: each undeclared identifier is reported only
once for each function it appears in
KS_ORIHUELA.prg:203:5: error: request for member 'hwnd' in something not a
structure or union
KS_ORIHUELA.prg:204:5: error: request for member 'uCount' in something not a
structure or union
KS_ORIHUELA.prg:205:5: error: request for member 'dwFlags' in something not
a structure or union
KS_ORIHUELA.prg:205:16: error: 'FLASHW_ALL' undeclared (first use in this
function)
KS_ORIHUELA.prg:206:5: error: request for member 'dwTimeout' in something
not a structure or union
KS_ORIHUELA.prg:208:3: warning: implicit declaration of function
'FlashWindowEx' [-Wimplicit-function-declaration]
KS_ORIHUELA.prg:247:10: error: too many arguments to function 'hb_storc'
In file included from KS_ORIHUELA.prg:19:0:
C:xailerhb32Include/hbapi.h:754:25: note: declared here
KS_ORIHUELA.prg:265:20: warning: initialization discards 'const' qualifier
from pointer target type [enabled by default]
KS_ORIHUELA.prg:281:20: warning: initialization discards 'const' qualifier
from pointer target type [enabled by default]
Compilando PRUEBAS2.prg...
Compilando CAPTURAR_DESCUENTOS.prg...
Compilando CATALOGO_DESCUENTOS.prg...
Compilando CATALOGO_AGENTES.prg...
Compilando MOVIMIENTO_AGENTES.prg...
Compilando AGENTES_CLAVES.prg...
Compilando FINANCIAR_AGENTES.prg...
Compilando FUNCIONES.prg...
Compilando GENERAR_NOMINA.prg...
Compilando CAPTURAR_PORCENTAJE.prg...
Compilando ESTATUS_AGENTES.prg...
15 Files, 5 Warnings, 10 Errors
Tiempo de compilación: 5.09s Tiempo de enlazado: 0s Tiempo total: 5.11s
Gracias y saludos.

Iniciando Xailer 3 con harbour

Publicado: Dom Mar 10, 2013 3:13 pm
por jrcpoli-quitar
Saludos:
Este es mi codigo en c de FLASHWINFO y compila con harbour y BCC55
#pragma BEGINDUMP
#include <windows.h>
#include <xailer.h>
XA_FUNC( FLASHWINDOW )
{
FLASHWINFO fi;
fi.cbSize = sizeof( FLASHWINFO );
fi.hwnd = (HWND) hb_parnl( 1 );
fi.uCount = hb_parnl( 2 );
fi.dwFlags = FLASHW_ALL;
fi.dwTimeout = XA_IsWin9X() ? 0 : 200;
FlashWindowEx( &fi );
}
#pragma ENDDUMP
Este es mi codigo en c de FLASHWINFO y compila con harbour y MinGW
#pragma BEGINDUMP
#define WINVER 0x0500
#include <windows.h>
#include <xailer.h>
XA_FUNC( FLASHWINDOW )
{
FLASHWINFO fi;
fi.cbSize = sizeof( FLASHWINFO );
fi.hwnd = (HWND) hb_parnl( 1 );
fi.uCount = hb_parnl( 2 );
fi.dwFlags = FLASHW_ALL;
fi.dwTimeout = XA_IsWin9X() ? 0 : 200;
FlashWindowEx( &fi );
}
#pragma ENDDUMP
Espero te sirva.
El 09/03/2013 23:24, PEDRO DE LEON RODAS escribió:
> Saludos a todos.
>
> Pues ya estoy iniciando las pruebas con Xailer 3 y Harbour, pero me
> encontre con los primeros detalles.
>
> Alguien me puede ir orientando en este traslado de xHarbour a Harbour ?
>
> De antemano les agradesco.
>
> Al compilar un pequeño sistema que tengo me da los siguientes errrores,
> antes les menciono que tengo codigo c, que amablemente me han
> proporcionado en este foro.
>
>
> Esto es el resultado de la compilacion.
>
> Compilando KS_ORIHUELA.prg...
> Compilando PRINCIPAL.prg...
> Compilando KS_ORIHUELA.rc...
> Compilando NUEVO_AGENTE.prg...
> KS_ORIHUELA.prg:200:3: error: unknown type name 'FLASHWINFO'
> KS_ORIHUELA.prg:202:5: error: request for member 'cbSize' in something
> not a structure or union
> KS_ORIHUELA.prg:202:23: error: 'FLASHWINFO' undeclared (first use in
> this function)
> KS_ORIHUELA.prg:202:23: note: each undeclared identifier is reported
> only once for each function it appears in
> KS_ORIHUELA.prg:203:5: error: request for member 'hwnd' in something not
> a structure or union
> KS_ORIHUELA.prg:204:5: error: request for member 'uCount' in something
> not a structure or union
> KS_ORIHUELA.prg:205:5: error: request for member 'dwFlags' in something
> not a structure or union
> KS_ORIHUELA.prg:205:16: error: 'FLASHW_ALL' undeclared (first use in
> this function)
> KS_ORIHUELA.prg:206:5: error: request for member 'dwTimeout' in
> something not a structure or union
> KS_ORIHUELA.prg:208:3: warning: implicit declaration of function
> 'FlashWindowEx' [-Wimplicit-function-declaration]
> KS_ORIHUELA.prg:247:10: error: too many arguments to function 'hb_storc'
> In file included from KS_ORIHUELA.prg:19:0:
> C:xailerhb32Include/hbapi.h:754:25: note: declared here
> KS_ORIHUELA.prg:265:20: warning: initialization discards 'const'
> qualifier from pointer target type [enabled by default]
> KS_ORIHUELA.prg:281:20: warning: initialization discards 'const'
> qualifier from pointer target type [enabled by default]
> Compilando PRUEBAS2.prg...
> Compilando CAPTURAR_DESCUENTOS.prg...
> Compilando CATALOGO_DESCUENTOS.prg...
> Compilando CATALOGO_AGENTES.prg...
> Compilando MOVIMIENTO_AGENTES.prg...
> Compilando AGENTES_CLAVES.prg...
> Compilando FINANCIAR_AGENTES.prg...
> Compilando FUNCIONES.prg...
> Compilando GENERAR_NOMINA.prg...
> Compilando CAPTURAR_PORCENTAJE.prg...
> Compilando ESTATUS_AGENTES.prg...
> 15 Files, 5 Warnings, 10 Errors
> Tiempo de compilación: 5.09s Tiempo de enlazado: 0s Tiempo total: 5.11s
>
>
>
> Gracias y saludos.
>

Iniciando Xailer 3 con harbour

Publicado: Dom Mar 10, 2013 8:40 pm
por PEDRO DE LEON RODAS[3]
José, Gracias.
Voy hacer las pruebas, puesto que estoy compilando con harbour y MinGW.
Saludos