我想为我的asp.net网站使用C++库。我不知道如何制作该库的.dll并使它工作。我尝试制作一个dll并将其导入到asp.net。我需要在C++代码中为dll工作吗?
源代码:http://warp.povusers.org/FunctionParser/fparser.html
最佳答案
您可以使用:
[DllImport("dllname.dll", CallingConvention = CallingConvention.Cdecl)]
public static extern double FunctionParser();
关于c# - 想要使用dll在asp.net中使用c++库,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/46222512/