Noesis Forum : Visilog Software Forum Index Noesis Forum : Visilog Software
Image processing forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

64 bits portability problems (Long -> LongPtr)

 
Post new topic   Reply to topic    Noesis Forum : Visilog Software Forum Index -> VBA
View previous topic :: View next topic  
Author Message
Laurent Bernard



Joined: 31 Jan 2006
Posts: 156
Location: Crolles

PostPosted: Tue Mar 06, 2012 8:55 am    Post subject: 64 bits portability problems (Long -> LongPtr) Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Noesis Forum : Visilog Software Forum Index -> VBA All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group