vs2008调用matlab2010b中自己写的m文件有关问题

求助vs2008调用matlab2010b中自己写的m文件问题
我用的是把m文件生成dll调用的方式
m文件内容如下:

function [output] = test_add(x,y)
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
f=imread('C:\distance.bmp');
imshow(f);
output=x+y;
plot(x,y,'r*');
end

vc中调用代码如下:
  mclmcrInitialize_proxy();
mwArray mwA(1, 1, mxDOUBLE_CLASS);//这句话有问题!
mwArray mwB(1, 1, mxDOUBLE_CLASS); 
mwArray mwC(1, 1, mxDOUBLE_CLASS);  
mwA.SetData(&a, 1);  
  mwB.SetData(&b, 1);
libtest_addInitialize();
test_add(1, mwC, mwA, mwB); 
c = mwC.Get(1, 1);  
cout<<c<<endl;
libtest_addTerminate();

这句话output=x+y;运行成功,vc中程序输出结果正确,但是为什么f=imread('C:\distance.bmp');
imshow(f);这两句话没有运行,我没看见matlab显示图像?

------解决方案--------------------
帮顶下