hb_parni() no acepta dos parametros en FWH 64

hb_parni() no acepta dos parametros en FWH 64

Postby George » Tue Apr 30, 2013 2:06 am

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  Expand view  RUN
//------------------------------------------------------------------------------------
#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
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm

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

Postby Antonio Linares » Tue Apr 30, 2013 6:11 am

George,

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

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42149
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

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

Postby George » Tue Apr 30, 2013 2:08 pm

Gracias Antonio.
Funciona perfecto.

George
George
 
Posts: 725
Joined: Tue Oct 18, 2005 6:49 pm

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

Postby Vikthor.Thomas » Fri Feb 07, 2014 8:45 pm

Antonio, que diferencia hay entre las dos funciones ?

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


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 2 guests