KoenDW
2010-04-21 13:34:23 UTC
Hello,
I am trying to migrate a component from version 7 to 2009. As could be
expected, some code parts do not compile. It is code from the TScap32-
project which apparently is halted.
I get an invalid typecast on this line:
Move(pOrigDibBmi^, TByteArray(pCopiedDib^)[0], BmiSize);
TByteArray is a type declared as: TByteArray = array[0..0] of Byte;
pCopiedDib is a PChar
I've read that some changes were introduced in Delphi 2009 concerning
pointers and dynamic array.
Can someone help me out?
regards,
Koen
I am trying to migrate a component from version 7 to 2009. As could be
expected, some code parts do not compile. It is code from the TScap32-
project which apparently is halted.
I get an invalid typecast on this line:
Move(pOrigDibBmi^, TByteArray(pCopiedDib^)[0], BmiSize);
TByteArray is a type declared as: TByteArray = array[0..0] of Byte;
pCopiedDib is a PChar
I've read that some changes were introduced in Delphi 2009 concerning
pointers and dynamic array.
Can someone help me out?
regards,
Koen