PDA

View Full Version : Office 64 Bit Compatibility



gmaxey
01-18-2014, 08:35 AM
I'm trying to make one of my add-ins compatible with Office 64 Bit versions of Word. Biggest problem is that I don't have that version to work or test with so I've been relying pretty much solely on the MS Code Compatibility Checker add-in.

Typically when I run that checker, it will flag compatibility issues and then offer the required API declarations statement.

Running the checker on one module, I get annotations that the API will need to be updated for compatibility with 64 bit, but reports no "EXACT MATCH" found. Accordingly, I've tried to guess what the proper declarations should be. Those are shown below:


#If VBA7 Then
Declare PtrSafe Function SHGetPathFromIDListA Lib "shell32.dll" ( _
ByVal pidl As LongPtr, _
ByVal pszBuffer As String) As LongPtr
#Else
Declare Function SHGetPathFromIDListA Lib "shell32.dll" ( _
ByVal pidl As Long, _
ByVal pszBuffer As String) As Long
#End If
#If VBA7 Then
Declare PtrSafe Function SHBrowseForFolderA Lib "shell32.dll" ( _
lpBrowseInfo As BrowseInfo) As LongPtr
#Else
Declare Function SHBrowseForFolderA Lib "shell32.dll" ( _
lpBrowseInfo As BrowseInfo) As Long
#End If




Hoping someone can confirm it is correct or better yet someone with Office 64 bit can download and test if the add-in will work. https://dl.dropboxusercontent.com/u/64545773/Photo%20Gallery%20Add-In%20Ver%201.9.dotm

Thanks.