FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#1
|
|||
|
|||
Ayuda a pasar este código a firemonkey.
hola,
anteriormente el señor ecfisa. me ayudo a crear un editor hexadecimal, funciona bien en VCL. pero necesito tenerlo en firemonkey.
sera posible pasar este código a firemonkey, sin usar un Control StringGrid. es decir que se almacene en una variable, y no en StringGrid. pero sino, lo mas importante para mi es pasar este código a firemonkey. yo hago el resto. muchas gracias por su ayuda. |
#2
|
||||
|
||||
elmago00,
Cita:
1- ¿Por que no un control TStringGrid? 2- ¿Que control sugieres usar en lugar del control TStringGrid?. 3- ¿Cuando te refieres a una variable exactamente que quieres decir y por que? 4- ¿Que versión de Delphi utilizas?. Espero sea útil Nelson. |
#3
|
|||
|
|||
gracias por responder Nelson.
veras es que lo intento hacer es abrir el archivo, y editarlo automáticamente, buscando la dirección y la cantidad de caracteres que le siguen. luego reemplazarlos por los que yo pongo. por eso decía si podía hacer lo mismo pero almacenarlo en una variable TStringGrid, sin usar el componente. pero si no es posible. el interés mayor mio es pasarlo a firemonkey para hacer yo el resto, que es buscar la dirección mas el hexadecimal y reemplazarlo. uso XE3. parece algo complejo verdad? pero se resume en pasarlo a firemonkey, ya sea un componente TStringGrid o una variable. cualquiera esta bien. siempre que me permita realizar la búsqueda para hacer lo que necesito. |
#4
|
||||
|
||||
elmago00,
Cita:
1- ¿Cuando indicas buscar por dirección te refieres al Offset (Fila) y los Bytes (Columna) que se muestran en el TStringGrid del ejemplo?. 2- ¿Cuando te refieres a almacenarlo en una variable TStringGrid pero sin el componente, te refieres a poder usarlo por código pero sin la parte visual del mismo?. Espero sea útil Nelson. |
#5
|
|||
|
|||
exacto usarlo pero sin que el usuario visualice el componente.
la búsqueda la realizo por "Offset" y reemplazo una determinada cantidad de byte(el hexadecimal) no los modifico todos solo unos cuantos, y luego guardo el archivo. |
#6
|
||||
|
||||
elmago00,
Cita:
Pregunto: ¿Cual es la finalidad de este trabajo? Nelson. |
#7
|
|||
|
|||
solo poder abrir un archivo en hexadecimal, y editarlo automáticamente, para un programa que estamos desarrollando.
no es con fines comerciales, ni nada eso. |
#8
|
||||
|
||||
Me apunto, me gustaría saberlo
|
#9
|
||||
|
||||
elmago00,
Cita:
1- ¿Por que este tipo de procesamiento?, ¿Sabes que pontencialmente estas construyendo un virus? 2- ¿Cuales son los detalles de la aplicación que quieres realizar?. 3- ¿Por que FireMonkey y no VCL?, ¿Es una aplicación multiplataforma?. Espero sea útil Nelson. |
#10
|
|||
|
|||
lo siento no comprendí bien tu pregunta.
lo necesito en firemonkey, por que el software principal esta así. y no podemos mover a VCL. por que el código fuente es mas 40 mil lineas de código. no tiene nada que ver con virus. conoces los editores hexadecimales. bien pues eso es lo que necesito, por que el software debe editar un archivo, buscar la dirección que debe cambiar para poder cargar ese archivo. solo necesito ese código en firemonkey. si es un componente stringGrid o no es lo de menos. solo que no querremos que el usuario haga el cambio, por que el no sabrá que esta insertando como reemplazo a la linea hexadecimal. solo eso. hagamos una cosa. se que no crees lo que digo. solo detallen las propiedades que tiene este código pero en firemonkey. por que el StringGrid no funciona igual que en VCL. yo hago el resto. gracias por responder a mis consultas. Última edición por elmago00 fecha: 07-05-2014 a las 03:36:08. |
#11
|
||||
|
||||
elmago00,
Cita:
El código anterior en Delphi XE4 bajo Windows 7 Professional x32, es la implementación del código del Msg #1 en FireMonkey HD, como se muestra en la siguiente imagen: Espero sea útil Nelson. Última edición por nlsgarcia fecha: 07-05-2014 a las 08:11:55. |
#12
|
|||
|
|||
gracias Nelson por ayudarme. ya es de madrugada y ustedes me siguen ayudando. mil gracias.
tu código solo tiene un contraste, yo como te dije antes, uso XE3. y me da dos errores el primero dice: TTextCell no contiene ningún miembro con el nombre StyledSettings. es esta linea
veo que tu usas algunas clases que XE3 no están disponibles, como ser: FMX.StdCtrls; el segundo problema es que abre el archivo pero en blanco, el StringGrid no muestra nada. perdona tanta molestia, pero cuando el cerebro no da, no queda de otra, que pedir ayuda. |
#14
|
||||
|
||||
elmago00,
Cita:
1- ¿De que tamaño es el archivo en cuestión?. 2- ¿Puedes abrir otros archivos?. 3- ¿La eliminación de la opción mencionada es la única modificación al código propuesto en el Msg #11?. Espero sea útil Nelson. |
#15
|
||||
|
||||
elmago00,
Cita:
Revisa este código: El código anterior en Delphi XE4 bajo Windows 7 Professional x32, es la versión 2 del código propuesto en el Msg #11, con unas pequeños cambios en el manejo del Visualizador de Archivos en Hexadecimal en FireMonkey, como se muestra en la siguiente imagen: El código esta disponible en : Visualizador de Archivos en Hexadecimal en FireMonkey Espero sea útil Nelson. Última edición por nlsgarcia fecha: 07-05-2014 a las 18:52:10. |
#16
|
|||
|
|||
muchas gracias al fin lo conseguí, se demora un poco, pero no importa. muchas gracias Nelson
para que fuera compatible con XE3 lo hice asi.
gracias a Ecfisa y Nelson. |
#17
|
||||
|
||||
Cita:
En el hilo anterior había interpretado que querias realizar cambios, de allí que usé un componente que te permitiera hacerlos interactivamente, pero si deseas guardarlo en un archivo de texto para trabajar sobre él, también podrías hacer:
Uso: El código te genera el archivo en la misma carpeta del archivo orígen, con el mismo nombre, de extensión .HEX y contiene los mismos datos que veías en el StringGrid. Saludos
__________________
Daniel Didriksen Guía de estilo - Uso de las etiquetas - La otra guía de estilo .... |
#18
|
||||
|
||||
elmago00,
Cita:
Una pequeña corrección : El código anterior en Delphi XE4 bajo Windows 7 Professional x32, corrige el código del Msg #15 en los casos en que los archivos a visualizar no sean múltiplos del factor de visualización (BPF), como se muestra en la siguiente imagen: El código esta disponible en : Visualizador de Archivos en Hexadecimal v2 en FireMonkey Espero sea útil Nelson. Última edición por nlsgarcia fecha: 07-05-2014 a las 21:32:39. |
#19
|
|||
|
|||
muchas gracias, agradezco mucho que hayan compartido su experiencia en este lenguaje conmigo. muchas gracias
Última edición por elmago00 fecha: 08-05-2014 a las 06:18:34. |
#20
|
|||
|
|||
aprovecho, para preguntarles, se podrá recuperar el archivo con su extensión original.
pues al hacer el cambio en el archivo después de editarlo, no vuelve a funcionar, por que esta en hexadecimal. ¿se puede recuperar el archivo original, pero después de haberlo modificado?. |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
ayuda con este codigo | kurono | Varios | 5 | 02-04-2014 00:25:11 |
Se estrena este foro sobre FireMonkey | Neftali [Germán.Estévez] | FireMonkey | 9 | 09-11-2012 13:05:30 |
ayuda con este codigo | kurono | Varios | 4 | 13-06-2008 01:03:29 |
necesito ayuda con este codigo | kurono | Varios | 4 | 06-05-2008 07:02:07 |
procedimiento almacenado ayuda con este codigo | pipecato | Varios | 5 | 16-12-2005 12:24:34 |
|