On Wed, Apr 6, 2011 at 10:50 AM, Stefan Paege <pa...@el-carls.de> wrote:

> > >   PostMessage(Handle, WM_MY_MSG, integer(Msg), 0);
> > >   ...
> > > end;
> > >
> > > I guess that won't work with 64bit-Delphi because I cannot cast a
> > pointer
> > > into an integer. Will I have to split the pointer into
> > Int64Rec.Lo/Hi? Any
> > > ideas?
> > >
> > > Regards,
> > > Tobias
> > >
> >
> > Since integer and pointer are both 8-bytes in x64, I think it would
> > work.
>
> No, Integer remains 4 Byte in x64.
> But Using NativeInt should work on both 32 and 64 bit.
>
> Regards
>   Stefan Paege
>

Ok, but in C++ Builder a declaration such as,

int i;

is 8 bytes--at least so in VC++.

For the Delphi ICS code, I think all the necessary integers have already
been converted to int64's.

SubZero
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to