Translating from C to Pascal

From: Julian Maisano (maisanosys_at_yahoo.com)
Date: 12/31/03


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.



Relevant Pages

  • Re: RNG to VB
    ... > Can someone translate the code below to VB? ... > TIA ... I'm with Mike on this one--use it as an external language DLL. ...
    (microsoft.public.vb.general.discussion)
  • Re: This is EASILY done in Excel:
    ... I use this site to translate C# into VB.NET ... > TIA ... > in your itemdatabound event handler ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • dlink DWL-700AP change over to DWL-2100AP
    ... the settings should translate. ... TIA ... CDs ... Prev by Date: ...
    (alt.internet.wireless)
  • Translating a Manual
    ... I have offered to try to translate a program manual into French. ... Is there a fairly readable discussion on the Web for beginners? ... TIA, ...
    (comp.os.linux.misc)
  • Rates for technical translations
    ... I've been asked by a UK contact to translate a highly technical ... TIA ... Mike Clark ... Prev by Date: ...
    (sci.lang.translation)