Nóta
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as shíniú isteach nó eolairí a athrú.
Teastaíonn údarú chun rochtain a fháil ar an leathanach seo. Is féidir leat triail a bhaint as eolairí a athrú.
'member' : __declspec(dllexport)/__declspec(dllimport) cannot be applied to a member of a managed or WinRT type
Remarks
The dllimport and dllexport __declspec modifiers are not valid on members of a managed or Windows Runtime type.
Example
The following example generates C3387 and shows how to fix it:
// C3387a.cpp
// compile with: /clr /c
ref class X2 {
void __declspec(dllexport) mf() { // C3387
// try the following line instead
// void mf() {
}
};