RAD Studio
ContentsIndex
PreviousUpNext
E2326: Use __declspec(spec1[, spec2]) to combine multiple __declspecs (C++)

When you want to use several __declspec modifiers, the compiler will complain if you don't combine them into one __declspec. For example:

int __declspec(__import) __declspec(delphiclass) X

will give an error. Use the following instead:

int __declspec(__import, delphiclass) X
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!