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ú.
'function' : __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention
Remarks
__declspec(dllexport) and __clrcall are not compatible. For more information, see dllexport, dllimport.
Example
The following example generates C3395:
// C3395.cpp
// compile with: /clr /c
__declspec(dllexport) void __clrcall Test(){} // C3395
void __clrcall Test2(){} // OK
__declspec(dllexport) void Test3(){} // OK