@rvk
Yes this is okay.
Under Windows, the Loading of DLL Files have different State of "load", and "un-load".
So (I don't sure at current Time) DLL has 3 or 4 Functions:
- at load
- attach
- de-tach
- un-load
And since FPC create the global Symbol PASCALMAIN (for .EXE, and .DLL), I simply could created a Wrapper .o(bject) File, that includes the Entry Function for loading DLL's under Windows, that call the PASCALMAIN global Symbol.
The file, I used for, is sources\fpc-rtl\RTL_crt.o
You can follow the build.bat - which is the Creation Batch-File for Win32 Command Line Interface (CLI).