Translating from C to Pascal
From: Julian Maisano (maisanosys_at_yahoo.com)
Date: 12/31/03
- Next message: Jeff Schwab: "Re: Translating from C to Pascal"
- Previous message: al: "Re: polymorphism - virtual function"
- Next in thread: Jeff Schwab: "Re: Translating from C to Pascal"
- Reply: Jeff Schwab: "Re: Translating from C to Pascal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 31 Dec 2003 01:44:42 -0600
Can anybody help me to translate the following lines to pascal(delphi)?
Let me explain what I'm looking for:
int i = 1; {In this line, an integer variable which is called "i" is
declared and it is initialised with 1}
BYTE data[2000]={0}; {your comments here...}
BITMAPINFOHEADER *bh=(BITMAPINFOHEADER*)data; {your comments here...}
RGBQUAD *pal=(RGBQUAD*)(data+sizeof(*bh)); {your comments here...}
I am very confused with the meaning that has the * in C/C++
I don't understand why it precedes the variable/type in some cases and in
other cases it is later
Neither I understand this kind of lines:
(BITMAPINFO*)bh {a type cast?}
&specbuf {the data referenced by a Pointer variable?}
TIA.
- Next message: Jeff Schwab: "Re: Translating from C to Pascal"
- Previous message: al: "Re: polymorphism - virtual function"
- Next in thread: Jeff Schwab: "Re: Translating from C to Pascal"
- Reply: Jeff Schwab: "Re: Translating from C to Pascal"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|