To all DLL experts:
I have number of applications, which are using the same copy of DataModule.
Applications grow in size (as usually they do...) and I would like to create DLL, and move the DataModule there.
More easy maintenance is also the reason.
I need some help how to do it, well I'm rather beginner with DLLs and I don't know if its possible, because of specific way that forms communicate with DataModule and back.
All edit components on all forms are created dynamically, when user selects startup parameters (like ContractCode, ModuleName...) - created from within DataModule by Form.CreateComponent(<ComponentNameTakenFromDB>).. and then all necessary properties are assigned.
DataModule constantly "communicates" with those components by Form.FindComponent(<ComponentNameTakenFromDB>)....
This communication includes writing and reading values to and from components, also changing some of their properties like Color, Enabled, Visible, etc.
None of components is connected directly to DataSets, updates are made by executing functions from DataModule. Those functions scan then through forms, get required data and update DB. The data type used is various; mostly strings, widestrings and integers, but blobs as well.
All necessary messages, which may be needed during DB updates are also generated by code within DataModule.
My questions are:
1. Is it possible and how?
2. Could it slow down the applications? (not that I want it :))