Laurent Bernard

Joined: 31 Jan 2006 Posts: 156 Location: Crolles
|
Posted: Tue Mar 06, 2012 8:55 am Post subject: 64 bits portability problems (Long -> LongPtr) |
|
|
De même, tous les handlers et autres qui sont au final des pointeurs doivent être modifiés (du type Long vers LongPtr):
If you use handlers or other pointers, you must replace the type from Long to LongPtr
Exemples
Old syntax:
| Code: | hwndOwner As Long
hInstance As Long
|
New syntax:
| Code: | #If Win64 Then
hwndOwner As LongPtr
hInstance As LongPtr
#Else
hwndOwner As Long
hInstance As Long
#End If |
Old syntax:
| Code: | Private Type BROWSEINFO
hOwner As Long
pidlRoot As Long
pszDisplayName As String
lpszTitle As String
ulFlags As Long
lpfn As Long
lParam As Long
iImage As Long
End Type |
New syntax:
| Code: | Private Type BROWSEINFO
hOwner As LongPtr
pidlRoot As LongPtr
pszDisplayName As String
lpszTitle As String
ulFlags As Long
lpfn As LongPtr
lParam As Long
iImage As Long
End Type |
|
|