function Encrypt(const S: String; Key: Word): String;stdcall;export;
...
...
你按的F9还是Ctrl+F9?
你是在RUN,不是BUILD,
DLL 的 RUN 需要一个调用程序!
加在Run->Parameters->Host Application