15 static const IID*
const arr[] =
20 for (
int i=0; i <
sizeof(arr) /
sizeof(arr[0]); i++)
22 if (InlineIsEqualGUID(*arr[i],riid))
29 STDMETHODIMP
Capi::create(BSTR instrument, BSTR user_name, BSTR password, Isession** session)
37 the_api->
createSession(instrument, user_name, password, &session_id);
39 CComPtr<Csession::Isession> the_session;
40 the_session.CoCreateInstance(CLSID_session, 0, CLSCTX_ALL);
41 the_session->put_session_id(session_id);
42 *session = the_session.Detach();
44 catch(
const std::exception& ex)
void createSession(BSTR instrument, BSTR user_name, BSTR password, ULONG *session_id)
Poco::SingletonHolder< InstAPILib > inst_api
HRESULT create(BSTR instrument, BSTR user_name, BSTR password, Isession **session)
HRESULT InterfaceSupportsErrorInfo(REFIID riid)
HRESULT reportError(T *obj, const std::string &errmsg)