Sharing a database connection between two or more exe's through a dll

Does anyone know if you can share a database connection between two or more
exe's through using a dll.  If you do, I'd appreciate any input as to how.
I'm able to call a function in the dll to create the database component,
make the connection and log on to the server, but my datasets need to reside
outside of the dll in the exe, but point to the database in the dll.

Thanks for any input.

Jerry Christin