C++ API - using password

When I open a database a prompt for password is presented and, as the application runs alone I cannot enter it.

I did a C++ Domino application in 1999 and I used a component COM to pass the password in the code: see it:

ISession *pComSession = NULL;

HRESULT hr;

wchar_t wcstrBuffer[MAX_SIZE_SENDER+1];

BSTR bstrPassword = NULL;

ht = CoInitialize(NULL);

hr = CoCreateInstance(CLSID_NotesSession,

			  NULL,

			  CLSCTX_SERVER,

			  IID_ISession,

			  (LPVOID*)&pComSession);

if (FAILED(hr))

{

// error was handled here

}

mbstowcs(wcstrBuffer, password, strlen (password)+1);

bstrPassword = SysAllocString(wcstrBuffer);

hr = pComSession->Initialize(bstrPassword);

SysFreeString (bstrPassword);

In this point to ahead I used C++ API functions normally!

I remember something about a COM Toolkit and a domobj_i.c file included in my Visual Studio 6.0 project, but now I cannot find anything about this.

How do I solve this now?

Thank you very much

Fernando