--- Juergen Schmied <[EMAIL PROTECTED]>
wrote:
> Sure about this? According to my informations
> IErrorInfo inherits from
> IDispatch. Did you try it with a real application?
> It should fail if the binary
> layout of the vtable is wrong. As far as I tested
> the interface was OK.
>
> Ciao
>
> Juergen
>
> > Changes:
> > IErrorIndo is a IUnknown descendant now.
>
I try it with native DAO (dao35.dll and related files)
and it works. With previous implementation it invoke
etTypeInfoCount and GetTypeInfo methods from
IErrorInfo instead of SetGUID and SetSource.
I look closer in Microsoft include files and found in
(OAIDL.H):
#if defined(__cplusplus) && !defined(CINTERFACE)
interface IErrorInfo : public IUnknown
{
public:
virtual HRESULT __stdcall GetGUID(
/* [out] */ GUID __RPC_FAR *pguid) = 0;
virtual HRESULT __stdcall GetSource(
/* [out] */ BSTR __RPC_FAR *pbstrSource) =
0;
virtual HRESULT __stdcall GetDescription(
/* [out] */ BSTR __RPC_FAR
*pbstrDescription) = 0;
virtual HRESULT __stdcall GetHelpFile(
/* [out] */ BSTR __RPC_FAR *pbstrHelpFile)
= 0;
virtual HRESULT __stdcall GetHelpContext(
/* [out] */ DWORD __RPC_FAR
*pdwHelpContext) = 0;
};
so i implemented IErrorInfo as descendant of IUnknown.
__________________________________________________
Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger.
http://im.yahoo.com/