hb_parni() no acepta dos parametros en FWH 64

Post Reply
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

hb_parni() no acepta dos parametros en FWH 64

Post by George »

Hola Fivetechsoft ,
En el ejemplo de mas abajo la funcion hb_parni(1,1) genera error al usarse en FWH 64.
En FWH funciona correctamente.

Code: Select all

//------------------------------------------------------------------------------------
#pragma BEGINDUMP
#include <hbapi.h>
#include <math.h>
HB_FUNC( C_ARRAY )                         
{
int aArray, nElement, nInfo;

aArray = hb_parni(1);
nInfo = hb_parinfa(1,0); // Retrieve no. of elements in array  // OK
hb_retni(nInfo);

// nElement = hb_parni(1,1);  // ERROR c2660 function does not take 2 arguments
// hb_retni(nElement);
    }
#pragma ENDDUMP
//------------------------------------------------------------------------------------ 
El mensaje es: ERROR c2660 'hb_parni' function does not take 2 arguments

Saludos,

George

Version: FWH 64 for harbour 13.03 (MSVC++) Mar. 2013
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: hb_parni() no acepta dos parametros en FWH 64

Post by Antonio Linares »

George,

Tienes que usar hb_parvni() en vez de hb_parni():

nElement = hb_parvni( 1, 1 );
regards, saludos

Antonio Linares
www.fivetechsoft.com
George
Posts: 710
Joined: Tue Oct 18, 2005 6:49 pm

Re: hb_parni() no acepta dos parametros en FWH 64

Post by George »

Gracias Antonio.
Funciona perfecto.

George
User avatar
Vikthor.Thomas
Posts: 144
Joined: Thu Jan 02, 2014 1:49 pm

Re: hb_parni() no acepta dos parametros en FWH 64

Post by Vikthor.Thomas »

Antonio, que diferencia hay entre las dos funciones ?

Saludos
Post Reply