I am using a class module to do some FTP work from a VBA application. The classmodule uses the "FtpFindFirstFileA" function in wininet.dll. It returnes the following:
Private Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
Private Type WIN32_FIND_DATA
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
nFileSizeHigh As Long
nFileSizeLow As Long
dwReserved0 As Long
dwReserved1 As Long
cFileName As String * MAX_PATH
cAlternate As String * 14
End Type
I have seen may different versions of FTP class modules, and they all work the same, so I am sure the code is correct. The problem is, is how do you convert “ftLastWriteTime” into a usuable date? Also, are there unsigned data types in VBA?
Private Type FILETIME
dwLowDateTime As Long
dwHighDateTime As Long
End Type
Private Type WIN32_FIND_DATA
dwFileAttributes As Long
ftCreationTime As FILETIME
ftLastAccessTime As FILETIME
ftLastWriteTime As FILETIME
nFileSizeHigh As Long
nFileSizeLow As Long
dwReserved0 As Long
dwReserved1 As Long
cFileName As String * MAX_PATH
cAlternate As String * 14
End Type
I have seen may different versions of FTP class modules, and they all work the same, so I am sure the code is correct. The problem is, is how do you convert “ftLastWriteTime” into a usuable date? Also, are there unsigned data types in VBA?