How can I pass TForm to a DLL as parameter?
问题 i want to make dll that using tform as parameter, the simple plan is if that form passed to dll the dll file return array that contain components name. it possible to passing tform as parameter? 回答1: Most likely you will have two instances of the VCL in your process, one for the host exe and one for the DLL. And that is one instance too many. The TForm class from your host exe is a different class from the TForm class in your DLL. The basic rule is that you cannot share VCL/RTL objects across