难题 FILETIME结构中的dwHighDateTime 和 dwLowDateTime 是如何转换为年月日的?
注意:我问的是它转换的算法。不是用哪个API转换。
[解决办法]
Private Declare Function GetFileTime Lib "kernel32" ( _ ByVal hFile As Long, _ lpCreationTime As Currency, _ lpLastAccessTime As Currency, _ lpLastWriteTime As Currency) As LongPrivate Sub Form_Load() ... Dim fCTime As Currency Dim fATime As Currency Dim fWTime As Currency ... GetFileTime fs, fCTime, fATime, fWTime
[解决办法]
你没看到老鸟的代码吗?
lpCreationTime As Currency,
API声明变了,
FILETIME是8字节,Currency也是8字节,所以可以代替!