解释以下代码的含义,代码很简单代码很简单Private Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow A
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 02:46:48
解释以下代码的含义,代码很简单代码很简单Private Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow A
解释以下代码的含义,代码很简单
代码很简单
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
下面是问题:
声明的变量.前面都有小写字母:dw,n,c,还有什么h,lp,lpsz等等
这是什么意思?
是变量的类型吗?
应该不是VB的吧?
请高手解释一下,要是能看到所有这类的信息就更好了,谢谢
还有,
cAlternate As String * 14
后面乘以14是什么意思?
解释以下代码的含义,代码很简单代码很简单Private Type WIN32_FIND_DATA dwFileAttributes As Long ftCreationTime As FILETIME ftLastAccessTime As FILETIME ftLastWriteTime As FILETIME nFileSizeHigh As Long nFileSizeLow A
Private Type WIN32_FIND_DATA
私有 类型 32位Windows操作系统_搜索_数据
(下面有些变量名称的含义我也不太清楚,别怪我)
dwFileAttributes As Long
定义变量文件属性组(只读/存档/隐藏)为长整型
ftCreationTime As FILETIME
定义变量创建时间为文件时间型(这种变量类型真是稀奇古怪.)
ftLastAccessTime As FILETIME
定义变量上次访问时间为文件时间型
ftLastWriteTime As FILETIME
定义变量上次更改时间为文件时间型
nFileSizeHigh As Long
定义变量最大文件大小为长整型
nFileSizeLow As Long
定义变量最小文件大小为长整型
dwReserved0 As Long
定义变量dwReserved0为长整型
dwReserved1 As Long
定义变量dwReserved1为长整型
cFileName As String * MAX_PATH
定义变量文件名为字符串(长度为MAX_PATH)
cAlternate As String * 14
定义变量cAlternate为字符串(长度为14字节)
End Type
问题:
声明的变量.前面都有小写字母:dw,n,c,还有什么h,lp,lpsz等等
(没有任何意义,只是为变量随便起一个名称)
是变量的类型吗?(不是的)
应该不是VB的吧?(不是.这是Windows操作系统中搜索文件的代码.)
注:可以在VB中运行,但没有意义.在VB中,有许多类似Integer这样的变量类型,这里就是生成一个新变量类型
cAlternate As String * 14
(限制该变量为14个字符)
你可累坏我了!