Pred časom sem z vašo pomočjo napisal makro, ki je uporabljal ti dve funkciji:
Koda: Izberi vse
Declare Function SHGetPathFromIDList Lib "shell32.dll" _
Alias "SHGetPathFromIDListA" (ByVal pidl As Long, ByVal pszPath As String) As Long
Declare Function SHBrowseForFolder Lib "shell32.dll" _
Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As Long
Koda: Izberi vse
Declare Function PtrSafe SHGetPathFromIDList Lib "shell32.dll" _
Alias "SHGetPathFromIDListA" (ByVal pidl As LongPtr, ByVal pszPath As String) As LongPtr
Declare Function PtrSafe SHBrowseForFolder Lib "shell32.dll" _
Alias "SHBrowseForFolderA" (lpBrowseInfo As BROWSEINFO) As LongPtr
Compile error:
The code in this project must be update for use on 64 bit system. Please review and update Declare statements and then mark them with PtrSafe attribute.
Kako naj popravim makro, da bo delal na 64 bitnem računalniku?
Lep dan!