RAD Studio
ContentsIndex
PreviousUpNext
E2007: Dispid only allowed in __automated sections

The definition of dispids is only permitted in __automated sections. 

 

struct__declspec(delphiclass) clxclass
{
int __fastcall foo1(void) __dispid(42);// Error
__automated:
int __fastcall foo2(void) __dispid(43);// OK
};
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!