Solved Convert to 64-bit (1 Viewer)

Kayleigh

Member
Local time
Today, 15:29
Joined
Sep 24, 2020
Messages
706
Hi, I came across the attached sample database but having trouble converting to run on 64-bit machine. Can anyone help me please?
 

Attachments

  • CrystalLong_FilePropertyViewer_ACCDB.zip
    260.9 KB · Views: 211

theDBguy

I’m here to help
Staff member
Local time
Today, 08:29
Joined
Oct 29, 2018
Messages
21,359
Hi. I don't have 64-bit to test this, but you could start out by adding PtrSafe anywhere you see Private Declare. For example,

Private Declare PtrSafe Function VirtualAlloc...

Hope that helps...
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 15:29
Joined
Jul 9, 2003
Messages
16,245
See Here:-

 

theDBguy

I’m here to help
Staff member
Local time
Today, 08:29
Joined
Oct 29, 2018
Messages
21,359
See Here:-

Amazing! How on earth did you find that thread? I am wondering now if that utility is not 64-bit compatible.
 

Uncle Gizmo

Nifty Access Guy
Staff member
Local time
Today, 15:29
Joined
Jul 9, 2003
Messages
16,245
Amazing! How on earth did you find that thread

Well, I tried to convert it to 64bit, but it failed on one of the subs, so I searched on the erroneous sub, and found that thread.

Unfortunately, it's still not working!

I suspect some of the "Longs" need changing to ptrsafe longs. The OP will need to research on that I believe.
 

theDBguy

I’m here to help
Staff member
Local time
Today, 08:29
Joined
Oct 29, 2018
Messages
21,359
Well, I tried to convert it to 64bit, but it failed on one of the subs, so I searched on the erroneous sub, and found that thread.

Unfortunately, it's still not working!

I suspect some of the "Longs" need changing to ptrsafe longs. The OP will need to research on that I believe.
Thanks for the update. I am wondering if the "native code" is a 32-bit piece of code that may not work in 64-bit. I'll need to find the original source and see if there's any explanation about that.
 

isladogs

MVP / VIP
Local time
Today, 15:29
Joined
Jan 14, 2017
Messages
18,186

theDBguy

I’m here to help
Staff member
Local time
Today, 08:29
Joined
Oct 29, 2018
Messages
21,359
The only developer I know who uses native code in Access is Wayne Phillips so the original file was easy to track down.
Access/VBA Tutorials - Accessing detailed file information provided by the Operating System (everythingaccess.com)
I've checked and it doesn't work in 64-bit.

However I have a similar utility which works in both 32-bit & 64-bit.
See Extended File Properties - Mendip Data Systems

Hope that helps
Thanks! That's what I figured may be the case.
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 23:29
Joined
May 7, 2009
Messages
19,175
don't use Crystal's version (it only works for x32).
go further down that site and download the one with link "sample database file".
this one is x64-ready.
 

Users who are viewing this thread

Top Bottom