This documentation is archived and is not being maintained.

ATL Provider Error ATL2055

Error Message

Interface "interface" does not have a UUID associated with it.

An interface cannot be specified with support_error_info unless it has a UUID associated with it. Some previous versions of MIDL generated header files that define interfaces without associated UUIDs. In those cases, use __declspec(uuid) to associate a UUID with an interface. Embedded IDL interfaces will always associate a UUID with the interface.

// ATL2055.cpp
// compile with: /c
// ATL2055 expected
#define _ATL_ATTRIBUTES
#include <atlbase.h>
#include <atlcom.h>

struct IATL2055 : public IUnknown
{
};

// to resolve, uncomment the following line
// struct __declspec(uuid("1CA5C7A3-8375-44CA-9605-9DCC1CB8B051")) IATL2055;

[ 
   coclass,
   support_error_info(IATL2055)
]
class CATL2055 : public IATL2055
{
};
Show: