Hi,
I have one main application that instanciate one dll. In the main application I make the connection to the database. What I pretend is to be able to use, in the dll, the connection that I instanciate in the main application... Does this make any sense?
I ask this, because if I need to declare and instanciate the same connection inside the dll it seems that I will be duplicating my code (as they run in the same address space)
Thank you.
I have one main application that instanciate one dll. In the main application I make the connection to the database. What I pretend is to be able to use, in the dll, the connection that I instanciate in the main application... Does this make any sense?
I ask this, because if I need to declare and instanciate the same connection inside the dll it seems that I will be duplicating my code (as they run in the same address space)
Thank you.