Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 01-09-2004
Avatar de DarkByte
DarkByte DarkByte is offline
Miembro
 
Registrado: sep 2003
Ubicación: Desconocido
Posts: 1.322
Poder: 22
DarkByte Va por buen camino
Guardar Dll's o exe's en archivos de recursos

¡Buenas!. Estoy intentando aprender a meter dll's y exe's en un archivo de recurso para usarlos en mi aplicacion. He encontrado el siguiente ejemplo en Planet-Source-Code:

Cita:
Empezado por Jerome Cold
itWhat You Do Is Make A Notepad and in it put
1 WAVE "Path of wave file" // 1 is the index WAVE is letting it know its a wave and the third part is the pad of the wave you adding
Save the text as a .rc example mywave.rc
in dos go to c:\program files\borland\delphi#\bin run the brcc32.exe
this is what I do brcc32.exe path of the rc you saved example : brcc32.exe mywave.rc
it will compile it to a res and you add the res to you project

same as I did for the wave you can do this any type of way in dos
path of brcc32.exe and path of your rc you can name it any way you want like this

enjoy

remember you application will have the size of the other exe too Imao
I would only do it if I wanted to embeded my trojan in it
but then if you think about it it will be a good type installer put a couple files
in the exe and create dir etc

JSCOTT BLAH 'PathOfRc' example I put the brcc32.exe in my c:\ so I don't have to type it all out

example: cd c:\ will take you to c:\drive I put the exe I wanted to copy there too

example : brcc32.exe c:\blah.rc
copy the res it compiles in c:\ to your project folder you working in
add the Res by doing {$R blah.res}

it will comile the res
Código Delphi [-]
var
  h : TresourceStream;
begin
  h := TResourceStream.create(hInstance,'JSCOTT','BLAH');
  h.savetofile('C:\hack.exe');
  h.free
end;

this is how you can execute it
add shellApi to uses
Código Delphi [-]
WinExec(c:\hack.exe,SW_NORmal);
Bien, lo del Wav lo comprendo, pero no la parte de meter otro tipo de archivos. No veo donde me dice que tengo que poner en el notepad para guardarlo como .rc.


Gracias, simplemente, por leerme
__________________
:)
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro


La franja horaria es GMT +2. Ahora son las 23:34:06.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi