在VC中编写的DLL在VC中可以调用,在C#中调用提示无法找到函数入口点,
在VC中的源文件中该函数的实现前加了extern "C" __declspec(dllexport),开头处也写了AFX_MANAGE_STATE(AfxGetStaticModuleState())
头文件中定义extern "C" __declspec(dllexport) void DIC_3D_Calculation_2(int width, int height, char *camcalib_filename, double *lpUV, BOOL Debug_Flag);
DEF文件中也导出了DIC_3D_Calculation_2 @149
C#中的引用语句是:
[DllImport("MFIPL.dll", EntryPoint = "DIC_3D_Calculation_2 ", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
public static extern void DIC_3D_Calculation_2(int width, int height, ref byte camcalib_filename, ref double resultUV,bool debugFlag);我用dumpbin也看了,导出函数名确实是DIC_3D_Calculation_2为什么还会报无法找到函数入口点的错误?请教。