C# 调用 C++ DLL(3) 非托管方式:直接调用C++方法(使用范例)

1、首先在vs2010新建项目选择win32应用程序,并设置为DLL,如下图所示   2、添加MyDLL.cpp源文件,其中代码: #include <cv.h> #include <highgui.h> extern "C" _ _declspec(dllexport)void Show()   {   IplImage *img = cvLoadImage("E:\\图库\\abc.jpg"
相关文章
相关标签/搜索