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