Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
'type-name' :
__declspec(dllexport)/__declspec(dllimport)cannot be applied to a managed or WinRT type
Remarks
The dllimport and dllexport __declspec modifiers aren't valid on a managed or Windows Runtime type.
Example
The following example generates C3386 and shows how to fix it:
// C3386.cpp
// compile with: /clr /c
ref class __declspec(dllimport) X1 { // C3386
// try the following line instead
// ref class X1 {
};