Click to See Complete Forum and Search --> : How to pass _ConnectionPtr pConn to dll


Atul Kothari
August 22nd, 2001, 02:00 AM
I want to pass _ConnectionPtr pConn to dll as argument in interface and there i want to use this connection object instead of making new object because to connect database it take more time.so how can do?

Serge Dolgov
August 29th, 2001, 03:14 AM
Try this:
-----------------
_ConnectionPtr m_pConn;
------------------
// Dll function:
void put_ActiveConnection(LPDISPATCH lConn)
{
m_pConn=lConn;
}