使用如下语句即可Pointer((@Application.MainForm)^) := Form1;
仔细想想和Pointer((Application.MainForm)) := Form1;有什么区别?
好像没区别?但是后者编译不过。