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

Just starting out? Need help? Post your questions and find answers here.
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

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

Post 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 :?:
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post by skywalk »

I would keep going to v5.5b1, UseCRC32Fingerprint() is there.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

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

Post 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.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
Fred
Administrator
Administrator
Posts: 18154
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

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

Post by Fred »

Just installed 5.42 back from website, and UseCRC32Fingerprint() is here. I wonder who is drinking here... :).
User avatar
skywalk
Addict
Addict
Posts: 4210
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post 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.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

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

Post by Thunder93 »

I see why... The PB help file has spelling mistakes, which I overlooked also .. when copying and pasting :|
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

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

Post 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))
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

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

Post by Thunder93 »

Who does the English pb help file? If Fred.., my drinking remark would still apply. :twisted:
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
NicknameFJ
User
User
Posts: 90
Joined: Tue Mar 17, 2009 6:36 pm
Location: Germany

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

Post 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.
Last edited by NicknameFJ on Wed Jun 15, 2016 12:25 am, edited 1 time in total.
PS: Sorry for my weird english, but english is not my native language.



Image
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

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

Post 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:
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
idle
Always Here
Always Here
Posts: 5836
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

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

Post by idle »

:lol:
Windows 11, Manjaro, Raspberry Pi OS
Image
Post Reply