Hi. I have to update the following Access VBA code to work on a 64 bit machine. What would I convert it to? Thanks
Public Declare Function ShellExecute Lib "SHELL32.DLL" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
If you look in your last question, I posted a link to a help file which contains all the common API calls and what they need to be modified to for 64 bit.
<<Hi Jim. Thanks but I am still not sure what this code should be converted to>>
You download the help file, lookup the call, and it tells you what it needs to be for 64 bit.
The other article I pointed you to explains what's required for 64 bit as far as PtrSafe and the new data types. Also explains the compiler constants, and which of those you should be using when.
There are few in's and out's to this....what you need to do depends on if you are developing a DB that will be used for both 32 and 64 bit or not. It's not an entirely straight forward process and you should understand some of the details involved.
If you look in your last question, I posted a link to a help file which contains all the common API calls and what they need to be modified to for 64 bit.
Jim.