A routine is expecting a type PBYTE which is defined:
PBYTE = ^Byte;
procedure MyProc (buffer : PBYTE);
I need to pass it a pointer to a packed record:
PHeader = ^THeader;
THeader = packed record
pMyHeader : PHeader;
I'ev tried many options for typecasting, and the only one the compiler agrees with is:
MyProc( @(pMyHeader^) );
This doesn't seem right.
Any one has a better suggestion?