Search found 1990 matches

by Karbon
Thu Jan 25, 2018 1:33 am
Forum: Coding Questions
Topic: Old CRC32Fingerprint() Versus Fingerprint()
Replies: 10
Views: 3260

Re: Old CRC32Fingerprint() Versus Fingerprint()

Awesome -- thank you!
by Karbon
Wed Jan 24, 2018 11:42 pm
Forum: Coding Questions
Topic: Old CRC32Fingerprint() Versus Fingerprint()
Replies: 10
Views: 3260

Re: Old CRC32Fingerprint() Versus Fingerprint()

Well, damn... I thought you were saying your old/new examples above were equivalents.

Do you have any idea what the old CRC32Fingerprint() returned?
by Karbon
Wed Jan 24, 2018 11:16 pm
Forum: Coding Questions
Topic: Old CRC32Fingerprint() Versus Fingerprint()
Replies: 10
Views: 3260

Re: Old CRC32Fingerprint() Versus Fingerprint()

So shouldn't these be producing the same string?

New

Code: Select all

Str(Val("$"+Fingerprint(@temp_kb7,StringByteLength(temp_kb7,#PB_Ascii),#PB_Cipher_CRC32)))
Old

Code: Select all

Str(CRC32Fingerprint(@temp_kb7,StringByteLength(temp_kb7)))
by Karbon
Wed Jan 24, 2018 10:22 pm
Forum: Coding Questions
Topic: Old CRC32Fingerprint() Versus Fingerprint()
Replies: 10
Views: 3260

Re: Old CRC32Fingerprint() Versus Fingerprint()

You're right, I only saw the original post. Same thing, though, you just unrolled it a bit in your last as far as I can tell..

Other than the #PB_ASCII I don't see any difference in your example and mine.. Am I missing something there?
by Karbon
Wed Jan 24, 2018 10:14 pm
Forum: Coding Questions
Topic: Old CRC32Fingerprint() Versus Fingerprint()
Replies: 10
Views: 3260

Re: Old CRC32Fingerprint() Versus Fingerprint()

Unfortunately that wasn't it (It's an all-ASCII program and I'm using the LTS version for exactly that reason).

Since the original function returned an integer and that's what was stored, and the new version returns a hex string, I'm actually comparing like this :

Str(Val("$"+Fingerprint(@temp ...
by Karbon
Wed Jan 24, 2018 9:57 pm
Forum: Coding Questions
Topic: Old CRC32Fingerprint() Versus Fingerprint()
Replies: 10
Views: 3260

Old CRC32Fingerprint() Versus Fingerprint()

So I have some legacy code where some checksums were created using this code ( I think in PB 4.4).

(New Code)
Str(Val("$"+Fingerprint(@temp_kb7,StringByteLength(temp_kb7,#PB_Ascii),#PB_Cipher_CRC32)))

(Old Code)
Str(CRC32Fingerprint(@temp_kb7,StringByteLength(temp_kb7)))

Given the same data ...
by Karbon
Wed Nov 01, 2017 10:42 pm
Forum: Tricks 'n' Tips
Topic: Update ExDatabase.pbi with Bugfix PB v5.4x (PBOSL)
Replies: 6
Views: 31509

Re: Update ExDatabase.pbi with Bugfix PB v5.4x (PBOSL)

I'll grab and test it. I had to shelve the project before because though it compiled with your changes, every time I try to connect to the SQLite DB it crashed before.
by Karbon
Fri Jun 16, 2017 2:51 pm
Forum: Coding Questions
Topic: What happened to SQLConfigDataSource_ ?
Replies: 7
Views: 3636

Re: What happened to SQLConfigDataSource_ ?

Thanks freak! I should have mentioned that I tried calling SQLInstallerError_() already.. It returns "C" -- yep, just the letter C.
by Karbon
Fri Jun 16, 2017 1:24 am
Forum: Coding Questions
Topic: What happened to SQLConfigDataSource_ ?
Replies: 7
Views: 3636

Re: What happened to SQLConfigDataSource_ ?

FWIW, this has *something* to do with Unicode, but I'm not seeing it.

Free beer to the first person to spot it!
by Karbon
Fri Jun 16, 2017 1:14 am
Forum: Coding Questions
Topic: What happened to SQLConfigDataSource_ ?
Replies: 7
Views: 3636

Re: What happened to SQLConfigDataSource_ ?

Interesting, I get no compilation errors at all but did substitute the values for the constants just to test. Unfortunately no change (SQLConfigDataSource_() just returns zero).
by Karbon
Fri Jun 16, 2017 12:28 am
Forum: Coding Questions
Topic: What happened to SQLConfigDataSource_ ?
Replies: 7
Views: 3636

Re: What happened to SQLConfigDataSource_ ?

Fig wrote:#ODBC_ADD_DSN equals 4
#ODBC_REMOVE_DSN equals 3
FYI...
ODBC_ADD_DSN should be 1, ODBC_ADD_SYS_DSN should be 4, or at least that's how it's been working for about 14 years in this code.. Likewise REMOVE_DSN is 3, REMOVE_SYS_DSN is 6..
by Karbon
Thu Jun 15, 2017 9:31 pm
Forum: Tricks 'n' Tips
Topic: Update ExDatabase.pbi with Bugfix PB v5.4x (PBOSL)
Replies: 6
Views: 31509

Re: Update ExDatabase.pbi with Bugfix PB v5.4x (PBOSL)

I've tried (and failed) to adapt your AddDSN to my needs.. I can't seem to find a clear explanation as to what changed between 5.3 and 5.4 to cause all the trouble? I cannot use Unicode in my case..

Here are the procedure I'm currently using. Is there anything you know of that can be changed here ...
by Karbon
Thu Jun 15, 2017 9:20 pm
Forum: Coding Questions
Topic: What happened to SQLConfigDataSource_ ?
Replies: 7
Views: 3636

What happened to SQLConfigDataSource_ ?

I'm using 5.44LTS, and cannot use Unicode (for a variety of reasons). 5.1 and 5.2 compiled and used this code just fine but 5.44LTS does not. I've seen several other threads about this but the solution was "use Unicode" -- but I can't in this case.. I'm not entirely sure where the unicode tie-in is ...
by Karbon
Wed May 24, 2017 9:06 pm
Forum: Coding Questions
Topic: Old code, New PB!
Replies: 3
Views: 2197

Re: Old code, New PB!

Thanks guys!