If you are working with Pascal, Delphi, or Lazarus (Free Pascal Compiler - FPC), you might encounter a cryptic error message during compilation or runtime:
program MyTool; procedure ExpandConstant(S: PChar); external 'InnoSetup.dll'; begin ExpandConstant('{app}'); end. runtime error at 1 0 cannot import expandconstant