Windows error 0x80040101, -2147221247

Detailed Error Information

DRAGDROP_E_ALREADYREGISTERED[1]

MessageThis window has already been registered as a drop target
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode4 (0x004)
NameFACILITY_ITF[2][1]
DescriptionThe source of the error code is COM/OLE Interface management.[2][1]
Error Code257 (0x0101)

Questions

3votes
3answers

Why do we have to create unique uuid for every interface in a idl?

Why do we have to create unique uuid for each interface in a idl ? For example in this interface there's a unique uuid for every interface in TradingLib. import "oaidl.idl"; [uuid(7C948DDC-8C22-46CF-91AD-1E043A0E1A10), object] interface IInventory : IUnknown { HRESULT GetStock([out, retval] long* pStock); HRESULT Buy([in] long quantity, [in] float rate); [...] read more
com
uuid
idl

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0