FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Temas de Hoy |
|
Herramientas | Buscar en Tema | Desplegado |
#21
|
|||
|
|||
no puedo extraer el nombre del fichero
He puesto un solo socket para envíar los paquetes y he puesto el record así:
type Paquete = record Tipo: Integer; Tamano: Integer; TamaTotal:Integer; NomFich:String; Buffer: array[0..1024] of Byte; end; No se si habrá algún problema con los strings pero el caso esque no me llega el nombre en el código de recepción... Pongo todo el código con el que estoy trabajando para hacer las pruebas(luego lo pasaré al que estoy haciendo yo...) No se lo que son los tipos NonBlocking yo utilizo de la paleta de componentes--> internet el componente clientsockect y serversocket... Seoane, te pongo el código este de pruebas...Cuando lo terminte(por favor que sea pronto) te paso el programa total...(como tu me digas que te viene mejor...) Este es el código que envía el fichero:
Perdonar, no se porqué se me ha ido toda la indentación... Última edición por Status Quo fecha: 28-05-2006 a las 16:49:16. |
#22
|
|||
|
|||
Este es el código que recibe el fichero. Lo he puesto tal cual me dijo Seoane esque ya no me fío de lo que pongo yo...
Creo que ya me va quedando poco para conseguirlo...pero aún necesito un poco más de ayudita... |
#23
|
|||
|
|||
Solucionado lo del string
Me acabo de solucionar lo del stream:
He puesto en el record en el campo de nombre de fichero esto: NomFich: String[50]; y ahora si coge el string en el receptor. pero... me da problemas en otras cosas.... Voy a mirármelo un poco más... |
#24
|
|||
|
|||
Ya se cual es el problema ahora
Ahora no me pasa bien ni el tamaño del fichero ni el tipo!!!!
Se le ocurre a alguien por qué? Gracias |
|
|
Temas Similares | ||||
Tema | Autor | Foro | Respuestas | Último mensaje |
Recorrer arreglo | Perrero80 | Varios | 3 | 18-05-2006 22:52:27 |
Compatibilidad entre PChar y String | vick | Conexión con bases de datos | 5 | 24-10-2005 21:50:35 |
¿como pasar de String dentro de un PChar? | Moises22 | Varios | 6 | 27-09-2005 15:43:47 |
Pchar y String | superhopi | Varios | 8 | 19-08-2004 09:54:06 |
problemas de compatibilidad de tipos pchar y string | VRO | Varios | 2 | 13-05-2004 10:29:34 |
|