Delphi Error – E2218 Published method ‘%s’ contains an unpublishable type

Delphi Compiler Error

E2218 Published method ‘%s’ contains an unpublishable type

Reason for the Error & Solution

The message applies only to Win32 compilations, where it indicates that a parameter or function result type in the method is not a publishable type.