Página 1 de 1

sMyPathExMetal [Ported to Delphi]

Publicado: 17 May 2012, 16:24
por Metal_Kingdom

Código: Seleccionar todo

////////////////////////////////////////////////////////////////////////////
//Autor: Metal_Kingdom                                                    //
//Autor original (VB6): M3 -> http://foro.udtools.net/showthread.php?6104 //
//Fecha: 17/05/2012                                                       //
//Web: udtools.net                                                        //
//Otros créditos: delphibasics.co.uk ; rhinocerus.net ;                   //
////////////////////////////////////////////////////////////////////////////

Function sMyPathExMetal():string;
var
sParams: array of string;
newlength, i: integer;
sMyPathExMetal: string;
sPath: cardinal;
begin
setLength(sParams, newLength);
  For i := 0 To Length(sMyPathExMetal) do
    begin
      sParams[0] := stringofchar(' ',256);
      sPath := GetModuleFileName(i, pchar(sParams[0]), 256);
      Result := sParams[i];
    end;
end;
Saludos!

Re: sMyPathExMetal [Ported to Delphi]

Publicado: 17 May 2012, 19:29
por xxxPoseidonxxx
Que buena esa tio gracias por compartirnosla!!!