参考:

http://social.msdn.microsoft.com/Forums/zh-CN/Vsexpressvc/thread/2dbe78f3-4afe-4a3a-b6c4-f658d70ace71

我在VC++6.0上创建了工程,现在移植到VS2005上,可是得到了下面的错误.我提供了可能出问题的代码。

>c:\project\datapool.cpp(1843) : error C2039: 'WriteHuge' : is not a member of 'CFile'

1> c:\program files\microsoft visual studio 9.0\vc\atlmfc\include\afx.h(1009) : see declaration of 'CFile'

Code:

CFile oOut;

CString sName;

sName.Format(

"%s\\FrameGrab\\TipFrameGrab.img", sAppPath);

if(!oOut.Open(sName, CFile::modeWrite |CFile::modeCreate))

{

AfxMessageBox(

"Did not open image for Frame Grab!");

return;

}

oOut.WriteHuge(ptrGrabTipRead, iSize);  // these are declared and populated earlier in code

oOut.Close();

解决方法:  调用 CFile::Write instead. Huge pointers are for the 16bit memory model, which is not supported after Visual C++ 1.52.

C2039 Error: WriteHuge : is not a member of CFile相关推荐

  1. 继承QTreeWidgetItem发生error: 'staticMetaObject' is not a member of 'QTreeWidgetItem' 错误

    点击打开链接 #ifndef QQUSERITEM_H就发生下列错误 #define QQUSERITEM_H #include <QTreeWidgetItem> class QQUse ...

  2. g++报错解决:error: ‘setw’ is not a member of ‘std’

    下午在用g++编译的时候报错如下: zhang@debian:~/CuteCompiler$ g++ -std=c++11 test.cpp -o test test.cpp: In function ...

  3. caffe中在某一层获得迭代次数的方法以及caffe编译时报错 error: ‘to_string‘ is not a member of ‘std‘解决方法

    caffe中在某一层获得迭代次数的方法以及caffe编译时报错 error: 'to_string' is not a member of 'std'解决方法 参考文章: (1)caffe中在某一层获 ...

  4. error: ‘to_string’ is not a member of ‘std’———已解决

    现象¶ cocos2d-x 2.2.6 项目的源码中使用了 std::to_string() 方法,使用 NDK r9d 编译的时候,报如下错误: error: 'to_string' is not ...

  5. error::make_unique is not a member of ‘std’

    原因: CMakeLists.txt中设置 set(CMAKE_CXX_STANDARD 11) 此时,在编译使用 std::make _ unique 创建 std:: unique_ptr智能指针 ...

  6. error: 'staticMetaObject' is not a member of 'QGraphicsItem'

    error: 'staticMetaObject' is not a member of 'QGraphicsItem' 在类定义的时候,增加下面的描述: class MyItem:public QO ...

  7. error: ‘integer_sequence’ is not a member of ‘std’

    本人在编译CAMODOCAL工程时遇到了该错误: /usr/local/include/ceres/internal/integer_sequence_algorithm.h:64:21: error ...

  8. 【已解决】error: ‘xxx’ is not a member of ‘xxx’

    一.问题描述 在改动openvslam源码时,遇到如下问题: error: 'keyframe' is not a member of 'openvslam::data' 改动为在system.h中加 ...

  9. 安装nginx:src/os/unix/ngx_user.c:26:7: error: ‘struct crypt_data’ has no member named ‘curren

    错误一:安装nginx报错"src/os/unix/ngx_user.c:26:7: error: 'struct crypt_data' has no member named 'curr ...

最新文章

  1. 了解Android中的meta-data及其应用
  2. 倒排索引优化 - 跳表求交集 空间换时间 贪心
  3. chmod 命令详解
  4. matlab中统计数组中各数字(元素)出现的次数
  5. 论文浅尝 | 机器阅读理解中常识知识的显式利用
  6. Forever让NodeJS应用后台执行
  7. 细节真的能决定成败么?
  8. SQL Server 动态行转列(参数化表名、分组列、行转列字段、字段值)
  9. 【线性代数及其应用】04 -线性变换
  10. android 安装p12证书,怎么使用P12证书的Android
  11. 关于用友财务总账的数据库关系
  12. sendto 函数中的struct iov_iter结构 (linux-5.0)
  13. 学长教你买电脑(笔记本篇)
  14. aix for sqlserver_Oracle大型数据库系统在AIX/UNIX上的实战详解(第2版)(文平)高清PDF扫描版 [266.16M]...
  15. xprivacy改IMEI
  16. Apollo学习笔记1-ESD_CAN调试
  17. liferay6.2 mysql_liferay6.2 集成CKEditor和ckfinder
  18. Python笔记之不可不练
  19. 让应用程序禁止Windows屏幕保护
  20. 8年iOS架构师告诉你,为什么iOS现在不行了!

热门文章

  1. 英国内政部(Home Office)间谍机构(spy powers)假装它是Ofcom咨询中的一名私人公民1514378402983...
  2. 链表的有序集合(java)
  3. linux xz压缩解压
  4. js取小数点后两位 方法总结
  5. ubuntu18.04美化主题(完整版)
  6. 无法启动此程序,因为计算机中丢失pthreadVC2.dll
  7. 中产学院全国首创7大黄金技术桂林游学发布会
  8. 56个清新文艺ppt模板
  9. 【ACWing】1129. 热浪
  10. 微软宣布Windows10即将迎来重大更新,Windows 11要来了?