托管函数导出问题
我在VC++里用写了个托管函数:List<String^>^ GetInfo(String^ name);
做为exe运行的时候这个函数工作很好,现在想把它做成dll供其它函数调用,改成:__declspec(dllexport) List<String^>^ GetInfo(String^ name);
之后出现错误提示:
error C3395 __declspec(dllexport) cannot be applied to a function with the __clrcall calling convention...
哪位大侠有解决方案吗,如何dllexport托管函数?谢谢先