windows mobile 5.0 模拟器 摄像头的使用

好大一地嗯 2009-11-12 10:03:41
现在开发使用wm5.0模拟器,需要采集摄像头数据,在调试的时候怎么使用PC机子上的摄像头?
...全文
143 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
nntt 2010-01-17
  • 打赏
  • 举报
回复
http://shop58788460.taobao.com/
本店经营毛绒玩具,多买多送,价格实惠,欢迎本店
好大一地嗯 2009-11-13
  • 打赏
  • 举报
回复
真机调试时候报错:
The file '-----------' cannot be opened. Either it is not signed with a trusted certificate or one of its components cannot be found. If the problem persists, try reinstalling or restoring the file
这个到网上找了下说是安全证书之类的
这个有什么好的解决方案吗?
好大一地嗯 2009-11-13
  • 打赏
  • 举报
回复
就 真机测试,我把程序打包CAB发布后,到手机上安装成功,运行时报:
The file '****' cannot be opened. Either it is not signed with a trusted certificate or one of its components cannot be found. If the problem persists, try reinstalling or restoring the file
后来在模拟器上直接复制过去也同样错,只有部署是可以的,有知道原因吗?谢谢
iqlife 2009-11-12
  • 打赏
  • 举报
回复
真机调试吧
我实现了很久都没有实现
xingshi310 2009-11-12
  • 打赏
  • 举报
回复
不了解,学习中
好大一地嗯 2009-11-12
  • 打赏
  • 举报
回复
SHCAMERACAPTURE shcc;
ZeroMemory(&shcc, sizeof(shcc));
shcc.cbSize = sizeof(shcc);
shcc.hwndOwner = NULL;
shcc.pszInitialDir = _T("\\Program Files\\TestQR\\");
shcc.pszDefaultFileName = _T("3.bmp");
shcc.pszTitle = _T("Take");
shcc.StillQuality = CAMERACAPTURE_STILLQUALITY_DEFAULT;
shcc.VideoTypes = CAMERACAPTURE_VIDEOTYPE_ALL;
shcc.nResolutionWidth = 0;
shcc.nResolutionHeight = 0;
shcc.nVideoTimeLimit = 0;
shcc.Mode = CAMERACAPTURE_MODE_STILL;

HRESULT hReturn = SHCameraCapture(&shcc);

if(hReturn==S_OK)
{
MessageBox(_T("\r\nTest:ok"), _T("test window"), MB_YESNO);
}else{
MessageBox(_T("\r\nTest:error"), _T("test window"), MB_YESNO);
}


以上是我现在的代码,在部署后,每次都是error,说明不成功。请问我这段代码有没有问题。
还是模拟器没有摄像头的问题?如何修正?
世外涛缘 2009-11-12
  • 打赏
  • 举报
回复
建议楼主还是直接用真机调试吧。
ruritanian 2009-11-12
  • 打赏
  • 举报
回复
没有办法,不过wm里面带了一个nullcam的camera驱动程序,你可以用。
ProgrammerNO1 2009-11-12
  • 打赏
  • 举报
回复
wm6也没见到有,呵~~~

以为也不行呢
jinhaijian 2009-11-12
  • 打赏
  • 举报
回复
wm6.0 的SDK的模拟器,微软是模拟camera。用wm6调试就可以

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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