 |
VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
|
上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
rsfon
註冊時間: 2003-11-10 文章: 1
第 1 樓
|
發表於: 星期日 三月 19, 2006 10:51 am 文章主題: 如何於vfp8.0 中使用 SHFileOperation API |
|
|
SHFileOperation API 之宣告如下
DECLARE INTEGER SHFileOperation IN Shell32;
STRING @lpFileOp
請教如何定義 STRING @lpFileOp 謝謝 |
|
回頂端 |
|
 |
syntech
註冊時間: 2003-05-16 文章: 4249 來自: Taipei,Taiwan
第 2 樓
|
發表於: 星期日 三月 19, 2006 8:22 pm 文章主題: |
|
|
到 MSDN ONLINE 去查 SHFileOperation _________________ 如果公司有下列困擾:
1. 找不到便宜,快速,簡易的 生產排程軟體
2. 不知道如何快速排定 採購計劃
3. 成本抓不準,自己算比軟體算有用
4. 想學習系統規劃,想找系統架構的顧問
請聯絡我們,也許我們幫得上忙 |
|
回頂端 |
|
 |
rcj811
註冊時間: 2003-08-12 文章: 35
第 3 樓
|
發表於: 星期三 三月 29, 2006 10:31 am 文章主題: 這是我截取一段,如需全部程式碼,請告知! |
|
|
Declare integer SHFileOperation in SHELL32.dll string @LPSHFILEOPSTRUCT
Declare integer GetActiveWindow in WIN32API
oheap = createobj('Heap')
#Define fo_copy 3
#Define fof_noconfirmation 64
cdeststring = deltree + chr(0) + chr(0)
nstringbase = oheap.allocblob(cdeststring)
cfileopstruct = numtodword(getactivewindow()) ;
+ numtodword(fo_copy) ;
+ numtodword(nstringbase) ;
+ numtodword(nstringbase + len(cdeststring)) ;
+ numtodword(fof_noconfirmation) + chr(0) ;
+ numtodword(0) ;
+ numtodword(0)
If SHFileOperation(cfileopstruct) = 0
retu .T.
Else
retu .F.
Endif |
|
回頂端 |
|
 |
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
|
|