E2007 Dispid only allowed in __automated sections (C++)
Go Up to Compiler Errors And Warnings (C++) Index
The definition of dispids is only permitted in __automated sections.
Example:
struct__declspec(delphiclass) clxclass
{
int __fastcall foo1(void) __dispid(42);// Error
__automated:
int __fastcall foo2(void) __dispid(43);// OK
};