Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SHFileOperation
Message
De
17/09/2002 13:58:36
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Divers
Thread ID:
00701236
Message ID:
00701386
Vues:
18
George, I don't know how to convert the string returned to type that you specified, please help me...
If is necessary, here is the code of my function...

Parameters MOPER, MFROM, MTO, MFLAGS

* -------------- Valores para MOPER
* #Define FO_MOVE 1
* #Define FO_COPY 2
* #Define FO_DELETE 3
* #Define FO_RENAME 4
* ------------- Valores para MFLAGS
* #Define FOF_SILENT 4
* #Define FOF_RENAMEONCOLLISION 8
* #Define FOF_NOCONFIRMATION 16
* #Define FOF_ALLOWUNDO 64
* #Define FOF_SIMPLEPROGRESS 256
* #Define FOF_NOCONFIRMMKDIR 512

Set Procedure To C:\FOLHAWIN\CORRECAO\PROGRAMS\CLSHEAP.PRG Additive
Local oHeap, nStringBase1, nStringBase2, cFileOpStruct, mReturn
Declare Integer SHFileOperation In SHELL32.Dll ;
STRING @ LPSHFILEOPSTRUCT
oHeap = Createobj('Heap')
nStringBase1 = oHeap.AllocBlob(MFROM + Chr(0) + Chr(0))
nStringBase2 = oHeap.AllocBlob(MTO + Chr(0) + Chr(0))
cFileOpStruct = NumToDWORD(_Screen.HWnd) + ;
NumToDWORD(MOPER) + ;
NumToDWORD(nStringBase1) + ;
NumToDWORD(nStringBase2) + ;
NumToDWORD(MFLAGS) + ;
CHR(0) + ;
NumToDWORD(0) + ;
NumToDWORD(0)
mReturn = (SHFileOperation(@cFileOpStruct) = 0) And ;
(Asc(Substr(cFileOpStruct,19,1)) = 0)
oHeap = ''
Clear Dlls

Return mReturn
Emerson Santon Reed
"One Developer CAN Make a Difference. A community CAN make a future." - Craig Boyd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform