13 #if defined(_WIN32_WCE) && !defined(_CE_DCOM) && !defined(_CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA)
14 #error "Single-threaded COM objects are not properly supported on Windows CE platform, such as the Windows Mobile platforms that do not include full DCOM support. Define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA to force ATL to support creating single-thread COM object's and allow use of it's single-threaded COM object implementations. The threading model in your rgs file was set to 'Free' as that is the only threading model supported in non DCOM Windows CE platforms."
23 public CComObjectRootEx<CComMultiThreadModel>,
24 public CComCoClass<Capi, &CLSID_api>,
25 public ISupportErrorInfo,
26 public IConnectionPointContainerImpl<Capi>,
28 public IDispatchImpl<Iapi, &IID_Iapi, &LIBID_instapiLib, 1, 0>
35 DECLARE_REGISTRY_RESOURCEID(
IDR_API)
39 COM_INTERFACE_ENTRY(Iapi)
40 COM_INTERFACE_ENTRY(IDispatch)
41 COM_INTERFACE_ENTRY(ISupportErrorInfo)
42 COM_INTERFACE_ENTRY(IConnectionPointContainer)
45 BEGIN_CONNECTION_POINT_MAP(
Capi)
46 CONNECTION_POINT_ENTRY(__uuidof(_IapiEvents))
47 END_CONNECTION_POINT_MAP()
49 STDMETHOD(InterfaceSupportsErrorInfo)(REFIID riid);
52 DECLARE_PROTECT_FINAL_CONSTRUCT()
54 HRESULT FinalConstruct()
66 STDMETHOD(create)(BSTR instrument, BSTR user_name, BSTR password, Isession** session);
69 OBJECT_ENTRY_AUTO(__uuidof(api),
Capi)