Pascal Script will throw a "semicolon expected" error if you declare an external function and don't have a handler assigned to the OnExternalProc
event.
You can implement it yourself, or you can use DllExternalProc
from the uPSC_dll unit. Consider calling RegisterDll_Compiletime
on your compiler component, which assigns the OnExternalProc
event and registers two functions for your scripts to call, UnloadDll
and DLLGetLastError
.
Although it's understandable to raise an error when the host program has provided no means of handling external functions, the specific wording of the error message is nonsense. I encourage you to file an issue with the project to get it improved.