Page 2 of 3

Re: Compilando con Harbour (intentando :-()

PostPosted: Sat Nov 15, 2014 6:33 am
by Antonio Linares
Mario,

En vez de hb_parni() usa hb_parvni()

Re: Compilando con Harbour (intentando :-()

PostPosted: Mon Nov 17, 2014 12:23 pm
by MarioG
Cristobal;
gracias por la guia... pero no tengo ni idea que otro parámetro debería agregarle

Antonio;
me temo que no le gusta :-(
le falta otro parámetro, segun la respuesta de errores?, es tal como dice Cristobal?

obj\temp.c:
obj\BPaint.obj does not exist
source\BPaint.prg does not exist
source\BPaint.c Mon Nov 17 09:10:02 2014

Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland
source\BPAINT.C:
Error E2193 source\BPAINT.C 55: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 55: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 60: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 60: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 61: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 61: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 62: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 62: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 67: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 67: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 68: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 68: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 70: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 70: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 77: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 77: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 78: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 78: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 80: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 80: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 83: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 83: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 84: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT
Error E2314 source\BPAINT.C 84: Call of nonfunction in function HB_FUN_SBTNPAINT
Error E2193 source\BPAINT.C 818: Too few parameters in call to 'hb_parvni' in function HB_FUN_MAKESEPARATOR
Error E2228 source\BPAINT.C 818: Too many error or warning messages in function HB_FUN_MAKESEPARATOR
*** 26 errors in Compile ***

Re: Compilando con Harbour (intentando :-()

PostPosted: Mon Nov 17, 2014 4:55 pm
by Antonio Linares
Mario,

Error E2193 source\BPAINT.C 55: Too few parameters in call to 'hb_parvni' in function HB_FUN_SBTNPAINT


Puedes mostrarme el código que hay en la línea 55 ? gracias

Re: Compilando con Harbour (intentando :-()

PostPosted: Mon Dec 01, 2014 12:22 pm
by MarioG
Antonio
mil disculpas, estuve con otras obligaciones, y no revise tu pedido

esta es la linea que me solicitás
Code: Select all  Expand view
  int   nPos         = _parni( 6 ) ;


gracias

Re: Compilando con Harbour (intentando :-()

PostPosted: Wed Dec 03, 2014 12:02 pm
by MarioG
Gente:
Alguien me puede enviar el archivo: Bpaint.obj compilado con Harbour 3.2.0dev (r1406161338)
Mientras espero a ver si Antonio, o quien lo sepa, encuentra solución a lo planteado en este post?

muchas gracias!

Re: Compilando con Harbour (intentando :-()

PostPosted: Wed Dec 03, 2014 4:12 pm
by Antonio Linares
Mario,

En la línea 55 se llama a _parni() pero el error que a ti te aparece es relacionado con hb_parvni() ( par v ni ).

Que includes usas en BPAINT.C ?

Re: Compilando con Harbour (intentando :-()

PostPosted: Wed Dec 03, 2014 6:17 pm
by carlos vargas
acá esta ya empaquetado, listo para construir la libreria.
fíjate en el código al inicio como se realiza la compilación condicional en bpaint.c según el tipo de compilador, harbour o xharbour.

Code: Select all  Expand view

/* TSButton Class, paint routines
   Author: Manuel Mercado
   Last update: Sept 11th, 2009
*/


#ifdef __HARBOUR__
#ifndef __XHARBOUR__
   #define _HB_API_INTERNAL_
   #define HB_LEGACY_TYPES_ON
#endif
#endif

#include <windows.h>
#include <hbdefs.h>
#include <hbapiitm.h>
#include <hbvm.h>

#ifdef __XHARBOUR__
   int  hb_parvni(  int  iParam, int iIndex );
   long hb_parvnl(  int  iParam, int iIndex );
   void hb_storvni( int  iValue, int iParam, int iIndex );
   void hb_storvnl( LONG lValue, int iParam, int iIndex );
#endif
 


http://castillolawyers.no-ip.info/owncloud/public.php?service=files&t=9f8319e464f7e74c4d853e3a3901e11c

Re: Compilando con Harbour (intentando :-()

PostPosted: Thu Dec 04, 2014 11:40 am
by MarioG
Antonio, Carlos
He leido las respuestas. En breve les comento como me fue

gracias

Re: Compilando con Harbour (intentando :-()

PostPosted: Tue Dec 09, 2014 12:38 pm
by MarioG
Carlos:
muchas gracias!. Con la compilacion condicional que me pasaste pude compilar bPaint.c

Antonio:
muchas gracias!, por interesarte en ayudarme (como siempre)
Si miras el post de Carlos, si es de tu interes, podrás ver la solución para compilar el fuente c

Re: Compilando con Harbour (intentando :-() - SOLUCIONADO!

PostPosted: Tue Dec 09, 2014 1:08 pm
by MarioG
Carlos;
me interesaría, no obstante haberlo solucionado, que me pases el comprimido que me dejaste en tu post. ya que el link no funciona mas.

nuevamente, muchas gracias

Re: Compilando con Harbour (intentando :-() - SOLUCIONADO!

PostPosted: Tue Dec 09, 2014 2:52 pm
by carlos vargas
son link con una vida de dos dias, ademas se cayo my server el viernes, hasta hoy que llege al work lo revisare y lo habilitare nuevamente, te aviso cuando este listo.

Re: Compilando con Harbour (intentando :-() - SOLUCIONADO!

PostPosted: Tue Dec 09, 2014 5:20 pm
by carlos vargas

Re: Compilando con Harbour (intentando :-() - SOLUCIONADO!

PostPosted: Tue Dec 09, 2014 5:36 pm
by Antonio Linares
Mario,

me alegro de que esté solucionado.

La ayuda de Carlos, como siempre, es muy valiosa :-)

Re: Compilando con Harbour (intentando :-() - SOLUCIONADO!

PostPosted: Tue Dec 09, 2014 8:53 pm
by MarioG
Carlos
ya la he bajado

gracias!

Re: Compilando con Harbour (intentando :-() - SOLUCIONADO!

PostPosted: Wed Oct 05, 2022 9:32 am
by hua
Hi Carlos,
Can I have a download link to the TSButton as well?
TIA