定义了一个 _RecordsetPtr pRecordset,已经用这个打开了一个记录集,但是需要打开第二个,我把这个关了,开始用的pRecordset->Close(),但是不行,要报错,后来看到说的是还要把pRecordset置为NULL,并且在CreateInstance(),但是我把pRecordset = NULL一加上就报错
错误信息:warning C4146: unary minus operator applied to unsigned type, result still unsigned
Automatically linking with ToolkitPro1202vc60D.dll
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(54) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1300) : see reference to function template instantiation 'void __stdcall ConstructElements(class CXTPSmartPtrInternalT<class CXTPSyntaxEditLineMarksManager::CLineMarksList>
*,int)' being compiled
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.
StudentUse.exe - 2 error(s), 1 warning(s)不知道是怎么回事???
错误信息:warning C4146: unary minus operator applied to unsigned type, result still unsigned
Automatically linking with ToolkitPro1202vc60D.dll
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(54) : fatal error C1076: compiler limit : internal heap limit reached; use /Zm to specify a higher limit
c:\program files\microsoft visual studio\vc98\mfc\include\afxtempl.h(1300) : see reference to function template instantiation 'void __stdcall ConstructElements(class CXTPSmartPtrInternalT<class CXTPSyntaxEditLineMarksManager::CLineMarksList>
*,int)' being compiled
Error executing cl.exe.
Creating browse info file...
BSCMAKE: error BK1506 : cannot open file '.\Debug\StdAfx.sbr': No such file or directory
Error executing bscmake.exe.
StudentUse.exe - 2 error(s), 1 warning(s)不知道是怎么回事???
解决方案 »
- IShellIconOverlayIdentifier如何使图标变化覆盖的
- 关于几个小问题,想请教
- VC COM编程学习
- 雪地里裸体跪求CTreeCtrl控件右键的解决办法
- 对话框扩展的疑问[孙鑫视频]
- 如何禁止双击标题栏带来的反应?
- 为什么我程序里面的两个while()都不会循环呢?附代码..大哥们帮我看看哦.
- 紧急提问??????
- 有没有人知道“点云”这东西的,它的预处理要做些什么??
- unresolved external symbol "public: static class CDatabase CAddDlg::m_database"
- vc 下用ShellExecute调用"打开方式"对话框的问题
- Xtreme界面库中如何在工具栏中添加一个ComboBox?
if (m_pRecordsetPtr->State==1)
m_pRecordsetPtr->Close();
防止漏关。
再就是对数据库操作时你最好捕获一下错误。
m_pRecordsetPtr->Close();