Hi,
I did do the following:
Added {$define ADDIMG_CID} to the implementation setting of the main unit.
Added the showmessage:
{$IFDEF ADDIMG_CID}
showmessage('ADDIMG_CID');
if Copy(fnam, 1, 4) <> 'cid:' then
fnam := 'cid:' + fnam;
{$ENDIF}
The message is not shown.
When I comment out the IFDEF, then this code is correclty executed.
Can you please have a look at it.