E2049 Class type 'type' cannot be marked as __declspec(delphireturn) (C++)

From RAD Studio
Jump to: navigation, search

Go Up to Compiler Errors And Warnings (C++) Index

Classes marked as delphireturn are special classes that the compiler needs to recognize by name. These classes are predefined in the headers.

Some of the delphireturn classes are Variant, AnsiString, and Currency.

You cannot mark user-defined classes as delphireturn.