Ver Mensaje Individual
  #1  
Antiguo 16-12-2012
DOS994 DOS994 is offline
Miembro
NULL
 
Registrado: oct 2012
Posts: 21
Reputación: 0
DOS994 Va por buen camino
copiar un directorio

Hola a todos necesito traducir este codigo a Borland C++
Código Delphi [-]
procedure TForm1.Button1Click(Sender: TObject);
 function CopiaTodo(Origen,Destino : String) :
  LongInt;
  var 
    F : TShFileOpStruct;
    sOrigen, sDestino : String;
  begin 
    Result := 0;
    sOrigen := Origen + #0;
    sDestino := Destino + #0;
 
    with F do 
    begin 
      Wnd   := Application.Handle;
      wFunc := FO_COPY;
      pFrom := @sOrigen[1];
      pTo   := @sDestino[1];
      fFlags := FOF_ALLOWUNDO or FOF_NOCONFIRMATION
    end; 
 
    Result := ShFileOperation(F);
end; 
 
begin 
  CopiaTodo('c:\Delphi3\*.*','c:\kk');
end;

Gracias de antemano
Responder Con Cita