Ver Mensaje Individual
  #10  
Antiguo 23-12-2012
DOS994 DOS994 is offline
Miembro
NULL
 
Registrado: oct 2012
Posts: 21
Reputación: 0
DOS994 Va por buen camino
Este es un codigo que lo que hace es buscar la direccion al copiar pero esta en Delphi. Por favor como seria en C++.

Código Delphi [-]
procedure LeerArchivosPortapapeles( Lista: TListBox );
var
  HPortapapeles: THandle;  // Handle del portapapeles
  iNumArc, i: Integer;     // Nº de archivos
  Archivo: array [0..MAX_PATH - 1] of char;
begin
  if ClipBoard.HasFormat( CF_HDROP ) then
  begin
    HPortapapeles := ClipBoard.GetAsHandle( CF_HDROP );
    iNumArc := DragQueryFile( HPortapapeles, $FFFFFFFF, nil, 0);
    for i := 0 to iNumArc - 1 do
    begin
      DragQueryFile( HPortapapeles, i, @Archivo, MAX_PATH );
      Lista.Items.Add( Archivo );
    end;
Responder Con Cita