API函数声明以后要怎么使用呢?比如说copyFile的函数声明以后,又该如何使用?
Public Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long
请各位高手解答!
API在VB中声明以后如何使用?
答案:1 悬赏:60 手机版
解决时间 2021-03-15 03:51
- 提问者网友:留有余香
- 2021-03-14 23:21
最佳答案
- 五星知识达人网友:罪歌
- 2021-03-15 00:44
Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long
Private Sub Form_Load()
CopyFile "c:\1.txt", "d:\1.txt", true
End Sub
lpExistingFileName String,源文件名
lpNewFileName String,目标文件名
bFailIfExists Long,如果设为TRUE(非零),那么一旦目标文件已经存在,则函数调用会失败。否则目标文件被改写
Private Sub Form_Load()
CopyFile "c:\1.txt", "d:\1.txt", true
End Sub
lpExistingFileName String,源文件名
lpNewFileName String,目标文件名
bFailIfExists Long,如果设为TRUE(非零),那么一旦目标文件已经存在,则函数调用会失败。否则目标文件被改写
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯