32 bit - 64 bit kodları

Katılım
12 Nisan 2019
Mesajlar
12
Excel Vers. ve Dili
2003
Herkese Merhaba.
32 bit bilgisayarda kullandığım depo programını 64 bit olan bir bilgisayara taşıyınca hata verdi.

32 Bit de kullandığım kod:
Private Type SHFILEOPSTRUCT
hwnd As Long
wFunc As Long
pFrom As String
pTo As String
fFlags As Integer
fAnyOperationsAborted As Long
hNameMappings As Long
lpszProgressTitle As Long
End Type
Private Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long
Private Const FO_DELETE = &H3
Private Const FOF_ALLOWUNDO = &H40




"Private Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long" kodunda hata vermekte.
Verdiği hata uyarısı
"
The code in this Project must be update for use on 64-bit systems.

Plase review and update Declare statements and then mark them with the PtrSafe attribute."

bu konuda yardımcı olabilirmisiniz? Teşekkürler
 

yanginci34

Altın Üye
Katılım
6 Temmuz 2010
Mesajlar
1,668
Excel Vers. ve Dili
excel2016
Altın Üyelik Bitiş Tarihi
12-10-2026
Denermisiniz.
Kod:
Private Type SHFILEOPSTRUCT
hwnd As Long
wFunc As Long
pFrom As String
pTo As String
fFlags As Integer
fAnyOperationsAborted As Long
hNameMappings As Long
lpszProgressTitle As Long
End Type
Private Declare ptrsafe Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long
Private Const FO_DELETE = &H3
Private Const FOF_ALLOWUNDO = &H40
 

yanginci34

Altın Üye
Katılım
6 Temmuz 2010
Mesajlar
1,668
Excel Vers. ve Dili
excel2016
Altın Üyelik Bitiş Tarihi
12-10-2026
Rica ederim kolay gelsin.
 
Üst