Hi,

I am using an API, which is built using COM. In order to use the API is do the following
Code:
IPSAPIPtr m_APIObject;

m_APIObject.CreateInstance(__uuidof(PSAPI));

HRESULT hr = m_APIObject->Connect(username,passwd);

m_APIObject->setValue(parameters);

m_APIObject->resetvalue(parameters);
There are three applications which are using the interface (PSAPI). Instead of creating a separate instance of the API for each application, i want to create a single instance and connect to the db and all the three applications can use it.

Is it possible to do ? If so , can someone tell what are steps invovled and what kind of project it should be.

Can you please throw some light.

Thanks for all the help !!

BTW all the 3 applications are built VC++ and they are command line.


thanks