使用vc ++的凭据提供程序 [英] Credential Provider using vc++

查看:62
本文介绍了使用vc ++的凭据提供程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

我正在使用VC ++开发凭据提供程序.我想使用
启动网络摄像头的地方
opencv类和库.将所有头文件及其库添加到

用于访问的凭据提供程序.

像这样的代码:

Hello,

I am working on Credential Provider using VC++. Where i want start a web cam using

opencv classes and libraries. Added all the header files and its libraries to

credential provider for accessing.

Code Like this:

cvCapture *camera = 0;
IplImage *frame;
IplImage *showimg;
cvNamedWindow("Input", CV_WINDOW_AUTOSIZE);
camera = cvCaptureFromCAM(0);
cvSetCaptureProperty(camera, CV_CAP_PROP_FRAME_WIDTH, 360);
cvSetCaptureProperty(camera, CV_CAP_PROP_FRAME_HEIGHT, 240);
while(1)
{
frame = cvQueryFrame(camera);
showimg = cvCloneImage(frame);
cvShowImage("Input", showimg);
}


添加了此代码以在窗口上显示凸轮.

但它不显示cam而是显示窗口并显示错误,如下所示:

此应用程序已请求运行时以异常方式终止它.请联系应用程序的支持团队以获取更多信息."

谁能给我一些想法,如何解决这个问题.

在此先感谢您.


added this code to display the cam on the window.

but its not displaying cam but displaying the window and giving the error Like this:

"This application has requested the runtime to terminate it in a unusual way. Please contact the application''s support team for more information".

Can anyone give me some idea, how to solve this issue.

Thanks in Advance.

推荐答案

您不会调用类.您调用函数.您实例化特定类的对象,然后使用它来调用该类中的函数.
You don''t call classes. You call functions. You instantiate objects of a particular class and use it to call functions from that class.


这篇关于使用vc ++的凭据提供程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆