提供以下信息仅仅是为了帮助理解:
MIDL_INTERFACE("00000000-0000-0000-C000-000000000046") IUnknown
{……};
MIDL_INTERFACE("00020400-0000-0000-C000-000000000046") IDispatch : public IUnknown
{……};
struct __declspec (uuid("00000534-0000-0010-8000-00aa006d2ea4")) _ADO : IDispatch
{……};
struct __declspec(uuid("00000515-0000-0010-8000-00aa006d2ea4")) Connection15 : _ADO
{……};
inline HRESULT Connection15::Open ( _bstr_t ConnectionString,
_bstr_t UserID,
_bstr_t Password,
long Options
)
{
HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
if (FAILED(_hr))
_com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
virtual HRESULT __stdcall raw_Open (
BSTR ConnectionString,
BSTR UserID,
BSTR Password,
long Options
) = 0;