FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Necesito la funcion XOR
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Necesito la funcion XOR
Posted: Mon Mar 16, 2009 09:51 PM

Hola a todos, Necesito la funcion XOR, que creo que es de C

Necesito que me la pasen en texto o en obj para 32Bits

Muchisimas gracias por su colaboracion y ayuda

Saludos

Adhemar

Saludos,



Adhemar C.
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Necesito la funcion XOR
Posted: Tue Mar 17, 2009 12:36 AM

Adhemar,

FiveWin proporciona nXor( n1, n2, ... ) --> nResultado

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: Necesito la funcion XOR
Posted: Tue Mar 17, 2009 12:17 PM
Gracias Distinguido Antonio

Me sale un error, aqui el proceso, no se como tengo que escribirlo el XOR

cConcate:="1234567890"
For I=1 To Len(cConcate)
X:=Mod( (x + 1) , 256 )
Y:=Mod( (aState[X+1]+Y) , 256 )
AuxState:=aState[X+1]
aState[X+1]:=aState[Y+1]
aState[Y+1]:=AuxState

Resto:=aState[ Mod( (aState[X+1] + aState[Y+1]) , 256 )+1 ]

nMen:=XOR( ASC( Subs(cConcate,I,1) ) , Resto )

nMen:=nMen+1

Next I

El error es:

Error: Unresolved external '_HB_FUN_XOR' referenced from D:\SISTEMAS\TAJIBOS\FACTURAS\OBJ\PROCFACT.OBJ

Gracias por su tiempo y colaboracion

Saludos

Adhemar
Saludos,



Adhemar C.
Posts: 139
Joined: Fri Nov 25, 2005 04:38 PM
Re: Necesito la funcion XOR
Posted: Tue Mar 17, 2009 01:00 PM

utiliza nXOR()

Ronaldo Minacapelli
Sistemas, Hospedagem e Criação de WebSites
http://www.bazevani.com.br
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Necesito la funcion XOR
Posted: Tue Mar 17, 2009 01:04 PM

Lleva una n delante: nXor()

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1710
Joined: Tue Oct 28, 2008 06:26 PM
Re: Necesito la funcion XOR
Posted: Tue Mar 17, 2009 01:46 PM

Gracias Distinguidos

Ahora me funciona perfecto.

Saludos

Adhemar

Saludos,



Adhemar C.

Continue the discussion