Club Delphi  
    Paypal   FTP   CCD     Buscar   Trucos   Trabajo   Foros

Go Back   Foros Club Delphi > Otros entornos y lenguajes > C++ Builder
Register FAQ Members List Calendar Guía de estilo Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30/06/2004
carlosmoralesm carlosmoralesm is offline
Miembro
 
Join Date: Feb 2004
Posts: 94
Poder: 23
carlosmoralesm Va por buen camino
Unhappy Ayuda en traducir de C a Delphi

Hola a todos

quisiera ver si alguien me puede ayudar a traducir el siguiente codigo de C a delphi o si me puede decir si la parte de la trduccion esta correcta.

Gracias de Antemano.

struct pattern
{
unsigned bit_length;
unsigned length;
char r_flag;
unsigned char *bytes;
struct pattern *next;
};
typedef struct pattern pattern;
struct command
{
unsigned char *name;
struct pattern *pattern;
struct command *next;
};
typedef struct command command;
struct remote
{
unsigned char *name;
unsigned long carrier_freq;
unsigned bit_time;
struct command *command;
struct remote *next;
};
typedef struct remote remote;

struct remote* CreateRemote(unsigned char *RemoteName, unsigned long Carrier, unsigned long BitRate);


Traduccion


type
pattern= record
bit_length : DWORD;
length : DWORD;
r_flag :CHAR;
bytes : BYTE;
end;

type
command=record
name : CHAR;
pattern : pointer;
end;

type
remote = record
name : CHAR;
carrier_freq : Longint;
bit_time : WORD;
command: pointer;
end;


Gracias nuevamente.
Reply With Quote
  #2  
Old 30/06/2004
delphi.com.ar's Avatar
delphi.com.ar delphi.com.ar is offline
Federico Firenze
 
Join Date: May 2003
Location: Buenos Aires, Argentina *
Posts: 5,965
Poder: 29
delphi.com.ar Va camino a la fama
Para traducir Headers de C, te recomiendo probar esta herramienta que funciona muy bien: Dr.Bob's HeadConv - C DLL Header Converter v4.20

Saludos!
__________________
delphi.com.ar

Dedique el tiempo suficiente para formular su pregunta si pretende que alguien dedique su tiempo en contestarla.
Reply With Quote
  #3  
Old 01/07/2004
marto's Avatar
marto marto is offline
Miembro
 
Join Date: May 2003
Location: Barcelona, Catalunya
Posts: 882
Poder: 24
marto Va por buen camino
Por favor... si quieres que la gente se lea el código, usa las etiquetas [delphi] o [code], así da dolor de cabeza
__________________
E pur si muove
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 12:35.


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