CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
英特尔®游戏设计大赛100美元现金周周送 专题改版:Java Web 专题
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  VC/MFC >  数据库

ado debug--there is a KERNEL32.DLL Exception in my app.

楼主wjatcsdn(TRACE(BUG))2003-06-01 02:52:34 在 VC/MFC / 数据库 提问

there   is   a   KERNEL32.DLL   Exception   in   my   app.  
  I   am   writing   a   database   application   using   ado.there   is   some   bug   in   following   codes,but   I   can't   debug.    
  My   codes   are   as   follow:  
  ...Initializing  
  001 m_pConnection.CreateInstance("ADODB.Connection");  
  002 m_pConnection->Open("Provider=sqloledb;Data   Source=;Integrated   003 Security='SSPI';Initial   Catalog=pipedb;UserId=;Password=;",  
  "","",adModeUnknown);  
   
  004 m_pRecordset.CreateInstance("ADODB.Recordset");  
  005 m_pRecordset->Open("SELECT   *   FROM   pipe",  
  _variant_t((IDispatch   *)m_pConnection,true),  
  adOpenDynamic,adLockPessimistic,adCmdText);  
  ...data   access  
  006 m_pRecordset->AddNew();  
  007 m_pRecordset->PutCollect("pipeNo",_variant_t(m_strPipeNo));  
  008 TRACE("\n\nThis   is   debug   code\n\n");  
  009 m_pRecordset->PutCollect("zoneNo",_variant_t(m_strZoneNo));  
  010 m_pRecordset->Update();    
  ...  
  when   running   the   application   ,the   exception   break   out   at   007,the   VC++   debug   promotes   "Unhandled   exception   in   MyGis.exe   (KERNEL32.DLL):0xE06D7363:Microsoft   C++"  
  Exception  
  问题点数:50、回复次数:2Top

1 楼bysen()回复于 2003-06-01 11:17:36 得分 50

我也经常遇到这种错误,产生的原因个人感觉是对数据的读取和更新有错误,你试试把“pipeNo”改成column的编号试试,还有确定你的_variant_t变量没有错误。Top

2 楼chenweihello(呼噜噜~~~~~~~~~~)回复于 2003-06-01 11:29:22 得分 0

帮你顶了Top

相关问题

  • 请教如何debug DLL
  • 关于debug、releale和dll
  • 关于dll中使用ADO的问题?
  • ADO连接SQLServer,哪些dll必须
  • 如何在dll中创建ado
  • 请教:在dll中使用ADO
  • 急!!!如何在DLL中使用ADO?
  • 在MFC DLL中使用ADO的问题
  • 在MFC DLL中使用ADO的问题
  • 请问Dll中如何使用ADO???

关键词

  • debug
  • dll
  • code
  • precordset
  • kernel32
  • pconnection
  • variant
  • exception

得分解答快速导航

  • 帖主:wjatcsdn
  • bysen

相关链接

  • Visual C++类图书
  • Visual C++类源码下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
世纪乐知(北京)网络技术有限公司 版权所有, 京 ICP 证 020026 号
北京创新乐知广告有限公司 提供技术支持
Copyright © 2000-2007, CSDN.NET, All Rights Reserved
GongshangLogo