STDMETHODIMP CTRiASMIObjectsCollection::get_DefaultType (BSTR *pbstrType) { CHECKOUTPOINTER(pbstrType); CIID Guid (CLSID_TRiASMIObjects); // DefaultType der _Elemente_ (hier: Objektklasse)! CComBSTR bstrType (Guid.ProgID().c_str()); *pbstrType = bstrType.Detach(); return S_OK; }
STDMETHODIMP CFastdbGeoFeatures::get_DefaultType (BSTR *pbstrType) { CHECKOUTPOINTER(pbstrType); CIID Guid (CLSID_TRiASSimpleGeoFeature); // DefaultType der _Elemente_ ! CComBSTR bstrType (Guid.ProgID().c_str()); *pbstrType = bstrType.Detach(); return S_OK; }
///////////////////////////////////////////////////////////////////////////// // ITRiASFeatureCallback STDMETHODIMP CFastdbFeature::get_DefaultType (BSTR *pbstrType) { CHECKOUTPOINTER(pbstrType); CIID Guid (GetObjectCLSID()); CComBSTR bstrType (Guid.ProgID().c_str()); *pbstrType = bstrType.Detach(); return S_OK; }