C#调用C++接口,帮看看C#的参数是否有错

验证码识别 2010-01-23 10:17:39

//参数:[in] imagebuf: 图片内存文件数据
// [in] size: imagebuf大小
// [out] text:识别结果
int __cdecl GetTessTextByBuf(unsigned char *imagebuf,int size, int type, char *text);




[DllImport("OCRapi.dll", EntryPoint = "GetTessTextByBuf", CharSet = CharSet.Ansi,
CallingConvention = CallingConvention.Cdecl)]
public static extern int GetTessTextByBuf(ref byte[] imagebuf,int size, int type, StringBuilder text);


C#的参数是否与C++的不对应?
...全文
87 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
soaringbird 2010-01-23
  • 打赏
  • 举报
回复
public static extern int GetTessTextByBuf(byte[] imagebuf,int size, int type, StringBuilder text);

111,123

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Creator Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧