Page 1 of 1

'migration .. to PB 5.40 LTS', where's UseCR32FingerPrint()?

Posted: Tue Jun 14, 2016 8:16 pm
by Thunder93
Hi. I've started up an old project which makes use of PB Cipher library.

In the PB help under migration .. to PB 5.40 LTS. It states we have to call Use*FingerPrint() and use FileFingerprint() now.

I'm using PB 5.42 LTS Stable and despite what its documented in its associated PB Help file. UseCR32FingerPrint() doesn't exists.

'[16:08:08] [COMPILER] Line 243: UseCR32FingerPrint() is not a function, array, list, map or macro.'


.... so what gives, was Fred on a drinking spree back when he was enhancing the Cipher library :?:

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Tue Jun 14, 2016 8:23 pm
by skywalk
I would keep going to v5.5b1, UseCRC32Fingerprint() is there.

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Tue Jun 14, 2016 8:51 pm
by Thunder93
I'm usually quick to grab the betas, at this time, I'm avoiding the beta. Besides the projects I've worked on, the 5.50beta offers nothing for enhancing my type projects. Therefore I like to hold off on 5.50 for now.

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Tue Jun 14, 2016 8:53 pm
by Fred
Just installed 5.42 back from website, and UseCRC32Fingerprint() is here. I wonder who is drinking here... :).

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Tue Jun 14, 2016 8:59 pm
by skywalk
Yes, it's in 5.42. I think he is confusing the syntax changes made to the cipher lib? I remember recoding some functions when migrating from v5.3 to v5.4x.

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Tue Jun 14, 2016 9:00 pm
by Thunder93
I see why... The PB help file has spelling mistakes, which I overlooked also .. when copying and pasting :|

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Tue Jun 14, 2016 9:02 pm
by Thunder93
from PB Help file....

Code: Select all

CRC32FileFingerprint(): code change 
  ; Old
  Result = CRC32FileFingerprint(Filename$)
  
  ; New
  UseCR32FingerPrint()
  Result.l = Val("$"+FileFingerprint(Filename$, #PB_Cipher_CRC32))


CRC32Fingerprint(): code change 
  ; Old
  Result = CRC32Fingerprint(*Buffer, Size)
  
  ; New
  UseCR32FingerPrint()
  Result.l = Val("$"+Fingerprint(*Buffer, Size, #PB_Cipher_CRC32))

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Tue Jun 14, 2016 9:06 pm
by Thunder93
Who does the English pb help file? If Fred.., my drinking remark would still apply. :twisted:

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Wed Jun 15, 2016 12:19 am
by NicknameFJ
Hi Thunder93,

the name of the funktion is UseCRC32Fingerprint().

Greetings

NicknameFJ



Edit:
Oh, I see you copied from the help file. And the typo was there.

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Wed Jun 15, 2016 12:23 am
by Thunder93
Yes but I was only copying from the official PB English help-file. If Fred maintains the English help-file, then he had many beers. :wink:

So the post of mine posting contents of the PB-Help file. :mrgreen:

Re: 'migration .. to PB 5.40 LTS', where's UseCR32FingerPrin

Posted: Wed Jun 15, 2016 8:02 am
by idle
:lol: