On 13 Dec 2003 at 17:34, Frank Heckenbach wrote: [...]
Type foo = packed record sig : array [ 0..3 ] OF char; end;
Var f : foo; Begin strcopy (f.sig, 'OK'); End.
produces this compiler error: packer.pas: In main program: packer.pas:10: cannot take address of packed record field `sig'
The error seems correct. Converting an array of Char to CString means taking the address.
[...] Hmm ... This has just broken my unzip sources. The record has to be packed, and I have to do things (e.g., as above) with the signature field. I guess I either have to convert all the code so that it will compile with "--delphi", or find some other hack to circumvent this :/ Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/