在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为什么还会报无法找到函数入口点的错误?请教。
在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为什么还会报无法找到函数入口点的错误?请教。
解决方案 »
- 【WPF】—腾讯微博授权后如何获取验证码 高分求教@
- formview进入编辑模式修改或添加,得到的值还是以前的
- 高分征求:OPC .NET API 2.00 Redistributables 开发包!
- 绝望
- 如何遍历类实例,如获取类的所有属性列表
- 请问如何判断一个link是合法的web地址
- 求助:关于在webform中调用vc的DLL的函数问题
- 如何Locked 网格控件C1TrueDBGrid(ComponentOne公司)中的任意单元格?
- 可惜最高只能给100分,不过老规矩,见者有份,水晶报表问题。
- 关于Treeview和TabControl控件的结合使用
- 怎么调用WEB服务
- Winform下的RichtextBox如何自动出现水平滚动条
除非你要C#中要用另外一个名字调用它