DataModule inside a DLL?
Posted on 2003-03-28
I'm developing a modular system (one main .exe and variuos .DLLs) with Delphi 5. I'd like to know the best way to share a database connection with all modules. People have suggested me to put a DataBase component inside each .DLL, but i don't think this is the best way, because each module is gonna make it's own connection to the DataBase Server (InterBase)... I'm trying to put a DataModule inside a .DLL and make it available for each module (.DLL), but i'm having trouble when transferring data between DataModule and the modules...
Does anyone have messed with something like this? Is it really possible to put a DataModule inside a DLL and make it available for all the program? If so, how can I do it, PLEASE????!!!