天嵌 ARM开发社区

 找回密码
 注册
查看: 1935|回复: 1

OV9650摄像头事例出错

[复制链接]
bagle 发表于 2010-11-14 11:25:32 | 显示全部楼层 |阅读模式
大家好,我在做OV9650例子的时候,当在Play函数里面加入
ret=DeviceIoControl(hCam,IOCTL_CAM_SETGAMMA,NULL,0,&gamma_enable,1,NULL,NULL);
时,编译时会出现错误,提示如下:
正在编译...
OV96Dlg.cpp
.\OV96Dlg.cpp(254) : error C2065: 'FILE_DEVICE_VIDEO' : undeclared identifier
.\OV96Dlg.cpp(254) : error C2065: 'METHOD_IN_DIRECT' : undeclared identifier
.\OV96Dlg.cpp(254) : error C2065: 'FILE_ANY_ACCESS' : undeclared identifier
.\OV96Dlg.cpp(254) : error C2065: 'gamma_enable' : undeclared identifier
.\OV96Dlg.cpp(254) : error C3861: 'CTL_CODE': identifier not found
生成日志保存在“file://g:\My Documents\Visual Studio 2005\Projects\OV96\OV96\TQ2440A (ARMV4I)\Debug\BuildLog.htm”
我以为库里面有这些常数呢,在cpp文件中直接复制的camera.h中的那些内容,可是用到的时候怎么会出现这些错误呢!
谢谢!
流鑫雨 发表于 2010-11-28 21:59:25 | 显示全部楼层
这个我也顶,我也想问这个问题,楼主现在知道吗?知道的话,能否告诉一声呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-16 17:43 , Processed in 1.078125 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表