i was reading an example from Iczelion homepage SaturnV2 than do that , but it use a dialogbox, than i still not understand completely ,... so i wonder if some 1 can help me with an example (like Button-Accion) to understand this procedure...

BTW: i hope this question will be on the right place .......:grin:
Posted on 2002-12-04 05:10:08 by DrBios
SHFileOperation ?
Posted on 2002-12-04 05:22:44 by JCP
Posted on 2002-12-04 05:38:00 by DrBios
is this better (SHFileOperation) or in assembler exist some other Spectacular way to do this?
Posted on 2002-12-04 05:48:14 by DrBios
SHFileOperation allows you to copy a whole directory with its subdirectories...

Check your helpfile/msdn...

You can do this manually with FindFirst/NextFile, CreateDirectory & CopyFile: sometimes it can be useful if you want to integrate the copy to your interface very specifically...
Posted on 2002-12-04 06:40:36 by JCP
i got some troubles filling the SHFILEOPSTRUCT ..in pFrom and pTo
can i use a null terminated string for a source and denstination path ...(just like a preliminary test)

hwnd DWORD ?
wFunc DWORD ?
pFrom DWORD ? <------- here is my problem
pTo DWORD ? < ------- and here too
fAnyOperationsAborted DWORD ?
hNameMappings DWORD ?
lpszProgressTitle DWORD ?

source db "c:\lolo.avi",0
dest db "c:\dest\",0

how should i pass or fill this parameters?
Posted on 2002-12-04 08:10:10 by DrBios
i gonna answer to myself:

how can u be so idiotic.... u just have to read carefully the WIN32 api ..
it's says than pTo & pFrom parameter must be set to NULL if it is not used. and also a double-NULL terminated strings !!!

so u must declare like this:

source db "c:\poto.avi",0,0
dest db "c:\pichula\tula\",0,0

got it !!?
Posted on 2002-12-04 08:42:21 by DrBios
Those args accept multiple strings so you have to terminate with 2 0's


source db "whatever",0,0
dest db "whatever",0,0
Posted on 2002-12-04 08:42:47 by gfalen
why 2 cero's instead 1 ?
Posted on 2002-12-04 09:49:26 by DrBios
As i said above they "accept multiple strings" - each string is separated
by a '/0' - like the environment list. You need a 'double' zero to indicate
the end of the list!
Posted on 2002-12-04 09:54:22 by gfalen
oh! ..got it ...thanks
Posted on 2002-12-04 10:28:41 by DrBios