做题,老是Runtime Error [问题点数:20分,结帖人a52724342]

Bbs1
本版专家分:0
结帖率 83.33%
Bbs2
本版专家分:182
Bbs6
本版专家分:7546
Bbs1
本版专家分:0
Bbs7
本版专家分:14565
Blank
黄花 2011年3月 C/C++大版内专家分月排行榜第二
Bbs1
本版专家分:0
Bbs7
本版专家分:14565
Blank
黄花 2011年3月 C/C++大版内专家分月排行榜第二
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Bbs12
本版专家分:381352
Blank
状元 2017年 总版技术专家分年内排行榜第一
Blank
榜眼 2014年 总版技术专家分年内排行榜第二
Blank
探花 2013年 总版技术专家分年内排行榜第三
Blank
进士 2018年总版新获得的技术专家分排名前十
2012年 总版技术专家分年内排行榜第七
RunTime Error!
在我机器上运行没有问题,可是一放到服务器上就出现这样的错误,头疼。rn又无法在服务器上进行调试,我该怎么做。
Runtime Error!
rn rnMFC程序Release版本,在一些机器可以正常运行,rn但是在我同事一台XP系统上一运行就跳出这个提示:rnRuntime Error!rnrnProgram:D:\bin\OfficeBank.exernrnthis application has requested the Runtime to terminate it in an unusual way Please contact the application's support team for more information.rnrn 确定rnrn我用depends在那台机器看过,不缺少动态库文件。请教大侠们,怎么办?
runtime ERROR
<em>runtime</em> <em>error</em> rnprogram:c:\program files\internet explore\iexplore.exe rnrn这是全部对话框文字 rn点了下面的确定后,页面就关闭了,每次都是,不点确定也点不了页面。 rn不知道怎么办 rn请各位大侠出手相助,感激涕零啊! rnrn下面的那位大侠,能说仔细点吗? rn实在是 不明白啊rn
Runtime error?
Runtime Error rnDescription: An application <em>error</em> occurred on the server. The current custom <em>error</em> settings for this application prevent the details of the application <em>error</em> from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. rnrnDetails: To enable the details of this specific <em>error</em> message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".rnrnrnrnrnrn rn rn rnrn rnrnNotes: The current <em>error</em> page you are seeing can be replaced by a custom <em>error</em> page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom <em>error</em> page URL.rnrnrnrnrnrn rn rn rnrn rn在自己电脑上是可以的换了台服务期就出现了这样的错误,看了前面的贴子,解决不了问题rn急用!要部署到服务器上,可就是这个错!!!!!!!!!
RunTime Error
开发工具:[color=#FF0000]VS2005 + SQL2005[/color]rnrn以下环境运行OKrn[color=#FF0000]SQL2005rnServer2003[/color]rnrnrn以下环境出现 RunTime Errorrn[color=#FF0000]SQL2008rnServer2008[/color]rnrnrn错误发生举例:rn页面Insert时,用户没有继续等待直接换页面(SELECT)rnServer2003 + SQL2005以上操作没问题。rnServer2008 + SQL2008就会出现。。。。。。。。rnrn处理方法:rnINSERT,UPDATE 语句+锁:[code=SQL]with(Tablock)[/code]rn但据客户反问题还是存在。。。。。。。。。。。。rnrn因自己公司没有Server2008 和 SQL2008所以没法调试。。。而客户那边是不允许外来人员加入或的(AD登陆系统),所以也没法调试。。。。。rnrn特来请教
runtime error 问题
[code=C/C++]rnBOOL CopyData2()rnrnchar m_sysdir[MAX_PATH];rnCString m_DestPath,m_DestFile;rnCFileFind m_finder;rnrnGetTempPath(MAX_PATH,m_sysdir);rnrnm_DestPath=m_sysdir;rnm_DestPath+="DriveWatcher\\";rnm_DestFile=m_DestPath+"DriveWatcher.exe";rnrnif( m_finder.FindFile(m_DestPath.GetBufferSetLength(strlen(m_DestPath) - 1)) == NULL )rn if( CreateDirectory(m_DestPath, NULL ) == NULL ) rn return FALSE;rnrn SetFileAttributes(m_DestFile, FILE_ATTRIBUTE_NORMAL);rn OnCopyFile((PCHAR)(LPCTSTR)m_DestFile, IDR_DATA2);rnrnrnreturn TRUE;rnrnrnrnrnrnrnrnvoid OnCopyFile(PCHAR path, UINT resource) rnrn CFileFind finder;rn HRSRC hRes;rn DWORD dwSize;rn HGLOBAL MemoryHandle;rnrn if( finder.FindFile(path) != NULL ) rn //if destination file foundrn rn //unset all attributes of the file.rn SetFileAttributes(path, FILE_ATTRIBUTE_NORMAL);rn DeleteFile(path);rn rnrn hRes = FindResource(NULL, MAKEINTRESOURCE(resource),RT_RCDATA);rnrn // Load the resource and save its total size.rn dwSize = SizeofResource(NULL , hRes);rn MemoryHandle = LoadResource(NULL, hRes);rn if(MemoryHandle != NULL)rnrn // LockResource returns a BYTE pointer to the raw data in the resourcern BYTE *MemPtr = (BYTE *)LockResource(MemoryHandle);rnrn CFile file(path, CFile::modeCreate | CFile::modeWrite);rn file.Write(MemoryHandle,dwSize);rn file.Close();rn rn rnrn FreeResource((HANDLE)hRes);rn[/code]rnrn这是一个从res文件夹里复制.exe到别地方的代码,但有个错误,如果只运行一次的时候,程式是没问题的,但同时运行两次会出现Runtime <em>error</em>,abnormal program temination的错误,怎么改呢? rnrn
asp.net中的runtime error
在使用asp。net做网站的时候,经常遇到<em>runtime</em> <em>error</em>的运行时错误,提示基本一样,如下:rnrnrnRuntime Error rnDescription: An application <em>error</em> occurred on the server. The current custom <em>error</em> settings for this application prevent the details of the application <em>error</em> from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. rnrnDetails: To enable the details of this specific <em>error</em> message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".rnrnrnrnrnrn rn rn rnrn rnrnNotes: The current <em>error</em> page you are seeing can be replaced by a custom <em>error</em> page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom <em>error</em> page URL.rnrnrnrnrnrn rn rn rnrn rn今天使用VSS2005配置基于http的远程访问,进行 远程的版本控制。一切做好之后,提示这个错误。因为这个市vss自己创建的网站,也出错我就很迷惑了。请问高手们是如何解决这个问题的?rn一般在使用asp。net编写网站的时候怎样调试?
.NET Runtime 2.0 Error
IIS出现这个错误。rn怎么解决
多线程网络编程 runtime error
mfc多线程编程的时候容易出现<em>runtime</em> <em>error</em>(网络通讯),这个可能原因是什么rn有时候正常有时候出错误
C++ runtime error
用VC6.0开发的对讲客户端软件,基于osip库。rnrn问题是,反复呼叫挂断几千次之后,会出现<em>runtime</em> <em>error</em>,现在可以排除内存泄露,因为任务管理器中看到内存没有随着呼叫次数增加。rn空指针错误基本也可以排除,因为那种错误报错时会有地址信息。rnrn所以请各位大侠们帮帮我,想想原因,很急,谢谢了。
Delphi7 runtime error 216
程序退出弹出 <em>runtime</em> <em>error</em> 216 at XXXXXX,奇怪的是,如果在关闭程序,此时有任何一个文件或文件夹处在打开中,就不弹出该对话框。rn程序已经更新了D7的补丁和使用fastmm调试过,只有些ansistring类型的变量有没有释放完。程序使用多文档界面,没有使用第三方控件。
cudaSafeCall() Runtime API error
各位好,请教一下。我将nvidia的显卡装好了,然后又装上了toolkit 与 sdk,然后在执行bandwidthTest例子的时候出现了问题。出的错误信息如下所示,想请教一下是哪儿的原因呢?是不是显卡太弱了(GeForce 8400M CS):rnrn[code=C/C++]rnC:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\bin\win32\Release>bandwidthTesrnt.exernRunning on......rn device 0:h(;rnQuick ModernHost to Device Bandwidth for Pageable memoryrncudaSafeCall() Runtime API <em>error</em> in file , line 657 : featurernis not yet implemented.rnrnC:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\bin\win32\Release>bandwidthTesrnt.exernRunning on......rn device 0:x(?rnQuick ModernHost to Device Bandwidth for Pageable memoryrncudaSafeCall() Runtime API <em>error</em> in file , line 657 : featurernis not yet implemented.rnrnC:\ProgramData\NVIDIA Corporation\NVIDIA CUDA SDK\bin\win32\Release>bandwidthTesrnt.exernRunning on......rn device 0:x(?rnQuick ModernHost to Device Bandwidth for Pageable memoryrncudaSafeCall() Runtime API <em>error</em> in file , line 657 : featurernis not yet implemented.rn[/code]
关于vc runtime error
在对话框初始化函数中加了下面的代码,执行后出现Runtime <em>error</em>!提示:This application has requested the Runtime to terminate it in an unusual way.rn不知道是什么问题,请高手帮忙!rnrn ADOConn m_AdoConn;rn m_AdoConn.OnInitADOConn();rnrn //设置SELECT语句rn _bstr_t vSQL;rn vSQL = "SELECT * FROM building";rnrn //执行SELECT语句rn _RecordsetPtr m_pRecordset;rn m_pRecordset = m_AdoConn.GetRecordSet(vSQL);rnrn HTREEITEM hRoot;rnrn while(!m_pRecordset->adoEOF)rn rn rn _variant_t TheValue; //VARIANT数据类型rn TheValue = m_pRecordset->GetCollect("name");//得到字段NAME的值rn if(TheValue.vt!=VT_NULL)rn m_tree.InsertItem(((char*)_bstr_t(TheValue)), TVI_ROOT);rnrn rn m_pRecordset->MoveNext();//转到下一条纪录rn rn rn m_pRecordset->Close();rn m_AdoConn.ExitConnect();rn
救命~runtime error 401
各位大大帮助下~rn我的程序在打包后安装在其他没有vb环境下的电脑上时 会报这个错(<em>runtime</em> <em>error</em>401)。rn但是 如果该机子上有装vb的话就不会报这个错误~,所以我又没法定位。。。rn怎么办啊~~~
runtime error求解
DescriptionrnrnWe all love recursion! Don't we? rnrnConsider a three-parameter recursive function w(a, b, c): rnrnif a 20 or b > 20 or c > 20, then w(a, b, c) returns: rnw(20, 20, 20) rnrnif a < b and b < c, then w(a, b, c) returns: rnw(a, b, c-1) + w(a, b-1, c-1) - w(a, b-1, c) rnrnotherwise it returns: rnw(a-1, b, c) + w(a-1, b-1, c) + w(a-1, b, c-1) - w(a-1, b-1, c-1) rnrnThis is an easy function to implement. The problem is, if implemented directly, for moderate values of a, b and c (for example, a = 15, b = 15, c = 15), the program takes hours to run because of the massive recursion. rnInputrnrnThe input for your program will be a series of integer triples, one per line, until the end-of-file flag of -1 -1 -1. Using the above technique, you are to calculate w(a, b, c) efficiently and print the result.rnOutputrnrnPrint the value for w(a,b,c) for each triple.rnSample Inputrnrn1 1 1rn2 2 2rn10 4 6rn50 50 50rn-1 7 18rn-1 -1 -1rnSample Outputrnrnw(1, 1, 1) = 2rnw(2, 2, 2) = 4rnw(10, 4, 6) = 523rnw(50, 50, 50) = 1048576rnw(-1, 7, 18) = 1rnSourcernrnPacific Northwest 1999
经典的runtime error问题
我用MFC写了一个对话框程序,程序里可以启动多个线程,对照片文件进行处理。rnrn公司的技术支持到客户那里运行这个程序,一般起2-6个进程,每个进程启动4-6个线程(确实比较狠)。但是程序总是会运行到半途之中的时候,跳出<em>runtime</em> <em>error</em>.我一直没有定位到是哪里出现的问题。有时候运行了10W数据出错,有时候运行了百万数据之后出错。也有时候始终不出错。rnrn我程序中用到了Cximage类,和一些其他的第三方的类库。rnrn我把代码中加了trycatch也不行。我想问问各位大侠,是因为第三方库不是多线程安全的?还是MFC有问题?还是代码当中有什么处理不当的地方?
unknow runtime error,求救
AJAX提交时,提示说 unknow <em>runtime</em> <em>error</em> 错误信息,求救啊rnrnrn把我的代码发上来: rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn 论文/会议录入 rnrnrn rnrn rnrn rnrnrn rn rn 教师论文/会议信息录入 rn rn rn rnrn请选择录入的类型: rn会议 rn论文 rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rnrnrn rn rn rn rn rn 无标题文档 rn rn rn rn rn rn rn rn 会议编号: rn 会议名称: rn 会议标题: rn 会议主办单位: rn 会议时间: rn 论文级别: rn rnrn rn rn rn rn rnrn rn rn rn020202 rn rn错误! rn rn rn rnrnrn选择 "会议"时出现 unknow <em>runtime</em> <em>error</em>,选择"论文" 时就没问题啊
m_pConnection->Open runtime error
下面程序为什么总是<em>runtime</em> <em>error</em>?发现网上很多人都是这问题,但都没看到有解答出来的呢?rn AfxOleInit();//初始化com库rn HRESULT hr;rn tryrn rn hr=m_pConnection.CreateInstance("ADODB.Connection");//创建Connection对象rn if (SUCCEEDED(hr))rn rn hr=m_pConnection->Open("Provider=Microsoft.Jet.OLEDB.4.0;DataSource=Data.mdb","","",adModeUnknown);//provider是针对access2000环境的 rn rn rn catch (_com_<em>error</em>* e)rn rn CString <em>error</em>message;rn <em>error</em>message.Format("连接数据库失败!\r\n错误信息:%s",e->ErrorMessage());rn AfxMessageBox(<em>error</em>message);rn return FALSE;rn rn
ASP.NET Runtime Error 错误
这个错误困扰了我几个小时。rnrn在网上找资料,都是复制的,说是没有正常注册到IIS。rnrn搞了半天,原来是ASPX文件没传上去。那既然aspx文件没有为什么不提示404错误呢?rnrnrn错误如下:rnrnRuntime ErrorrnrnDescription: An application <em>error</em> occurred on the server. The current custom <em>error</em> settings for this application prevent the details of the application <em>error</em> from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. rnrnDetails: To enable the details of this specific <em>error</em> message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".rnrnrnrnrnrn rn rn rnrnrnNotes: The current <em>error</em> page you are seeing can be replaced by a custom <em>error</em> page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom <em>error</em> page URL.rnrnrnrnrnrn rn rn rn
Runtime error问题
运行安装程序时rnMicrosoft Visual C++ Runtime Library面板出现如下内容:rnRuntime Error!rnProgram: c;\winnt\sysytem32\rundll.exernabnormal program terminationrn求教怎么解决啊
OJ Runtime Error (ACCESS_VIOLATION)
HDUOJ 1536的rn找不出原因啊,请各位查看一下我的代码吧,错在哪里了?rnrn[code=c]#includern#includern#includern#includernusing namespace std;rnrnint k, m, l;rnint s[1000+5], sg[1000+5], h[1000+5];rnint sum;rnvoid solution(int n)rnrn for(int i=1; i> k && k)rn rn for(int i=1; i> s[i];rn cin >> m;rn while(m--)rn rn sum = 0;rn cin >> l;rn for(int i=0; i> h[i];rn solution(h[i]);rn rn if(sum)rn rn cout << "W";rn elsern cout << "L";rn rn cout << endl;rn rn return 0;rn[/code]
Runtime Error?谢谢!
我在执行完我的程序退出时会弹出窗口rnrnRuntime Error 204 at 004027d0;请问这是何故啊?rn谢谢!
runtime error原因
<em>runtime</em> <em>error</em>原因除是了是数组越界还有什么原因
Runtime Error 问题
小弟维护一个网站,最近突然出现一个问题,在网站上传一些更新内容之后,偶尔几次还好,多上传几次之后网站页面就出现了Runtime Error rnDescription: An application <em>error</em> occurred on the server. The current custom <em>error</em> settings for this application prevent the details of the application <em>error</em> from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. rnrnDetails: To enable the details of this specific <em>error</em> message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".rnrnrnrnrnrn rn rn rnrn rnrnNotes: The current <em>error</em> page you are seeing can be replaced by a custom <em>error</em> page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom <em>error</em> page URL.rnrnrnrnrnrn rn rn rnrn rnrnrn求教各位大虾该如何解决啊???到底问题出在何处呢
runtime error的问题
我编写了一个用AD0与数据库相连的程序,每次运行的时候都会弹出一个<em>runtime</em> <em>error</em>:this application has requested the <em>runtime</em> to terminate it in an unusual way,please contact the application's support team for more information.rn我在网上下了两个6.0.x版本的Msvcirt.dll和msvcrt.dll替换所有7.0.x,但是system32文件夹里的msvcrt.dll貌似替换不了。我已经把dllcache里的备份删除,6.0.x版本的msvrt.dll可以粘贴进去,文件大小和6.0.x相同,但是粘贴之后版本却立刻变成了7.0.x。rn运行程序还是会弹出<em>runtime</em> <em>error</em>,无法执行。rnrn希望各位能帮忙解答 谢谢!
ACM runtime error
[code=c]rn#include rn#include rn#include rnusing namespace std;rnrnchar input[10000][7];rnmapdata;rnmap::iterator it;rnint main()rnrn int max,line,pos;rn string temp;rn cin>>max;rn rn //输入数据rn for(int i=0,line=0;i>temp;rn pos=0;rn for(int j=0;j=48&&temp[j]second;rn data.erase(it);rn data.insert(pair(temp,hh+1));rn rn rn if(data.size()==max)rn cout<<<<
pku 1001 Runtime error
[color=#0000FF][color=#0000FF]求高精度幂rnTime Limit: 500MS Memory Limit: 10000K rnTotal Submissions: 59073 Accepted: 13898 rnrnDescriptionrnrn对数值很大、精度很高的数进行高精度计算是一类十分常见的问题。比如,对国债进行计算就是属于这类问题。 rnrn现在要你解决的问题是:对一个实数R( 0.0 < R < 99.999 ),要求写程序精确计算 R 的 n 次方(Rn),其中n 是整数并且 0 < n =0; i--) rn rn if(a[i]=='.')rn rn count=strlen(a)-1-i;rn rn for(int j=i; j>0; j--) //将小数点移到a[0]rn rn rn char t=a[j-1];rn a[j-1]=a[j];rn a[j]=t;rn rn rn break;rn rn rn rn for(int i=strlen(a)-1; i>=0; i--) //计算末尾零的个数rn rn if(a[i]=='0')rn numOfZero++;rn else break;rn rn rn int aa=0,p=1; //将字符串转换为整数,由aa记录rn for(int i=strlen(a)-1;i>=1;i--)rn rn aa+=(a[i]-'0')*p;rn p*=10;rn rn rnrn count=count*power; //计算最终结果的小数位数rn caculate(aa,power,count,numOfZero);rn rn rn return 0;rnrn rn void caculate(int a, int power,int count,int numofz)rn rn int num[100]=1,1; //计算结果rn int i,j,k=1;rn rn for(i=1;i=10)rn rn if(j==k)rn k++;rn num[j+1]+=num[j]/10;rn num[j]%=10;rn rn rn rn rn num[0]=0; //添加小数点,以0占位 rn for(int i=0;i=1; i--) //输出结果rn rn if(num[i]!=0 or i==count) //去掉前导零,确定小数点位置rn rn for( j=i;j>=numofz*power;j--) //输出小数点,去掉后导零rn rn if(j==count)rn printf(".");rn elsern printf("%d",num[j]);rn rn break;rn rn rn rn rn printf("\n");rn
ADO的" Runtime Error"
我用ADO 来操作数据库rnrnvoid CObjectData::BInit()rn//打开数据库 rn _ConnectionPtr m_pConn;rn _RecordsetPtr m_pRst;rnrnm_pConn.CreateInstance(__uuidof(Connection));rntryrnrnchar conn[300];rnsprintf(conn,"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=%s\\data.mdb",FRM.GetPath());rn m_pConn->Open((_bstr_t)conn,"","",adModeUnknown);rnrn catch(_com_<em>error</em> e)rnrn MessageBox(NULL,"数据库连接失败,确认数据库是否在当前路径下!",e.ErrorMessage(),MB_OK);rnreturn ;rn rnm_pRst.CreateInstance(__uuidof(Recordset));rnrnrn当在后面调用m_pRset->Open();时有"Runtime Error",是为什么呢?rn
runtime error 216:
确认我我写的代码问题,报错也贴上来,在程序退出的时候会报,其他时候okrn<em>runtime</em> <em>error</em> 216 at 01673ba6rn内存不能为读 0*016736ab 0*01601b24等等rnrnfunction g_ShowStore(Const AWhereStr:string;var ARstData:TdxMemData;AMultiSelect:boolean):boolean ;rnvarrn strSql:string ;rn cdsQry:TClientDataSet ;rn FieldItems:TFieldItems ;rnbeginrn result:=false ;rn if ARstData=nil thenrn ARstData:=TdxMemData.Create(nil);rn FieldItems:=TFieldItems.Create(nil) ;rn FieldItems.Sorted :=false ;rn TFrameDataAccessImpl.AddField(FieldItems,'store_code_id','store_code_id',True,false,true,80) ;rn TFrameDataAccessImpl.AddField(FieldItems,'store_code','门店代码',false,True,true,80) ;rn TFrameDataAccessImpl.AddField(FieldItems,'name','门店名称',false,True,true,120) ;rn TFrameDataAccessImpl.AddField(FieldItems,'address','地址',false,True,true,100) ;rnrn strSql:='select store_code_id,store_code,name,address from store(nolock) ';rn if AWhereStr<>'' thenrn strSql:=strSql+' where '+AWhereStr ;rn strSql:=strSql+' order by store_code ' ;rn tryrn if not _Environment.DataAccess.SelectSql(strSql,cdsQry) thenrn beginrn showmessage('获取门店信息出错:'+_Environment.DataAccess.LastError) ;rn exit ;rn end ;rn if cdsQry.IsEmpty thenrn beginrn showmessage('没有门店信息!') ;rn exit ;rn end ;rn result:= g_ShowChoose('门店选择',cdsQry,FieldItems,ARstData,AMultiSelect,true,false) ;rnrn finallyrn cdsQry.free ;rn FieldItems.free ;rn end ;rnend ;rnrnrnprocedure test;rnvarrn RstData:TdxMemData;rnbeginrn RstData:=TdxMemData.Create(nil) ;rn tryrn if not ShowStore(strwhere,RstData,False)then exit; //只要不执行这句就没问题rn if RstData.RecordCount=0 then Exit;rn store_code_id:=RstData.fieldbyname('store_code_id').AsInteger;rn finallyrn RstData.Free;rn end;rnend;
Runtime error 204 ?????
程序调用dll后运行后,在退出时总是提示“Runtime <em>error</em> 204 at 40002ffc”,请问该怎么解决???
RUNTIME ERROR ! 什么原因?
我的程序是一个读取串口的,用VC编的。 rn在运行过程中<em>老是</em>提示RUNTIME ERROR !但有时确能正确运行! rn请问这是什么原因?那位给个提示,不胜感激!
求救:Runtime error问题
VC6+ADO+SQL SERVER2000rnrn我新建了一个基于对话框的MFC AppWizard[exe]文件,在对话框上新建了一个按钮和一个ListBox,单击此按钮时,ListBox用来显示数据库中的内容。代码如下:rnrn//StdAfx.h中导入动态链接库rn...rn#import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","rsEOF")rn...rn//AdoDlg.cpp中连接数据库rn...rnvoid CAdoDlg::OnBtnQuery() rnrn // TODO: Add your control notification handler code herern CoInitialize(NULL);rn _ConnectionPtr pConn(__uuidof(Connection));rn _RecordsetPtr pRst(__uuidof(Recordset));rn pConn->ConnectionString="Provider=SQLOLEDB.1;Password=sa;Persist Security Info=TRUE;User ID=sa;Initial Catalog=pubs";rn pConn->Open(" "," "," ",adConnectUnspecified);rn pRst=pConn->Execute("select au_lname from authors",NULL,adCmdText);rn while(!pRst->rsEOF)rn rn ((CListBox*)GetDlgItem(IDC_LIST1))->AddString((_bstr_t)pRst->GetCollect("au_lname"));rn pRst->MoveNext();rn rn pRst->Close();rn pConn->Close();rn pRst.Release();rn pConn.Release();rn CoUninitialize();rnrn...rnrn程序在编译链接时都没有错误,但是运行后,当单击按钮时,程序就出现一个报错对话框,报错内容如下:rnRuntime Error!rnProgram:E:\VC6.0\Ado\Debug\Ado.exernThis application has requested the Runtime to terminate it in an unusual way.rnPlease contact the application's support team for more information.rnrn难道是还有什么地方没有做吗?谢谢大家帮我解答。
mysql runtime error
各位高手:rnDBMS是Mysql ,要在MVC的 的service层里面写一个 rnclass Errorrn rnrnclass IO_Error extends Errorrnrnrnclass DB_Error extends Errorrnrnrn请问这里个子类分别要处理的情况有哪些?
Runtime Error (运行时错误)
Runtime Error (运行时错误) Runtime Error(ARRAY_BOUNDS_EXCEEDED) // array bounds exceed     数组越界  Runtime Error(DIVIDE_BY_ZERO) //divisor is nil                                   除零 错误 Runtime Error(ACCESS...
Runtime error! 高手进!!
环境 vc6.0 + SQLServer 2000rn 基于对话框的应用程序 rn 添加了2个按钮 一个是查询按钮 用于读取数据库表中信息 rn 另一个是增加按钮 功能向表中添加记录 。rn 问题是编译链接成功,点击第一个按钮都能正确执行,当点击第2个时就出现Runtime <em>error</em>! rnrn我分别测试某一个按钮都正常 ,这是为什么啊rnrnrn请高手支招~~~rn谢谢~~~~~~rn分不够可再加~~~~~~·
pb runtime error
我用pb编制一应用,在pb开发环境中运行正常。但是编译成exe文件之后独立运行,报数据库连接错误。rnrn错误代码:dbms odbc is not supported in your current installationrnrn但是我检查了odbc设置,没有问题。不知什么原因,请赐教。rnrn开发环境:win.me,pb6.5,adaptive server anywhere 6.0.1
急 Runtime Error!!!!!1
我用ADO编的数据库部分程序如下:rnBOOL CFirst1Dlg::OnInitDialog()rn rn HRESULT hr;rn tryrn rn // 创建Connection对象rn hr = m_pConnection.CreateInstance("ADODB.Connection");rn rn if(SUCCEEDED(hr))rn rn m_pConnection->ConnectionTimeout=5;rnrn hr=m_pConnection->Open ("Data Source =student;UID=;PWD=;","","",rn adModeUnknown);rn rn rn catch(_com_<em>error</em> e)rn rn CString <em>error</em>message;rn <em>error</em>message.Format ("连接失败!\r\n错误信息:%s",e.ErrorMessage ());rn AfxMessageBox(<em>error</em>message);rnrn rn _RecordsetPtr m_pRecordset;rn m_pRecordset.CreateInstance ("ADODB.Recordset");rn tryrn rn m_pRecordset.CreateInstance ("ADODB.Recordset");rn hr= m_pRecordset->Open(_bstr_t("SELECT*FROM student"),rn _variant_t((IDispatch*)m_pConnection, true),rn adOpenStatic,adLockOptimistic,adCmdText);rn rn rn catch(_com_<em>error</em> e)rn rn CString <em>error</em>message;rn <em>error</em>message.Format ("连接失败!\r\n错误信息:%s",e.ErrorMessage ());rn AfxMessageBox(<em>error</em>message);rnrn rn if(SUCCEEDED(hr))rn rn LoadData();rn rnvoid CFirst1Dlg::LoadData()rnrn rn _variant_t vField;rn vField =m_pRecordset->GetCollect(long(0));rn m_sno=vField.iVal ;rn vField =m_pRecordset->GetCollect(long(1));rn m_sname=vField.bstrVal ;rn vField =m_pRecordset->GetCollect(long(2));rn m_ssex=vField.bstrVal ;rn vField =m_pRecordset->GetCollect(long(3));rn m_sage=vField.iVal ;rn vField =m_pRecordset->GetCollect(long(4));rn m_sdept=vField.bstrVal ;rnrn编译没有问题,可是在运行时却出错rn Runtime Error!rn Program:************.exern This application has requested the Runtime to terminate it in an unusual way.rn个人觉得实在调用LoadData()时出错, 可是就不知道错在哪。rn请高手帮帮忙
VB 致命错误!!!Runtime Error
标题是:Microsoft visual C++ Runtime Library rnrn Runtime Error!rn Program:C:\Program Files\Microsoft visual Studio \VB98\vb6.exern rnrn This application has requested the Runtime to terminate it in an unusual way.rn Please contact the application's support team for more information.rnrnrnrnrn再将CAD数据转换成GIS的mdb格式时,用VB6.0写个工具进行数据转换时,突然出现了这个错误,点击确定后,整个vb窗口就退出了,请问大侠们这是肿么回事?如何解决, 另外,我要转换的数据量很大.
请问关于runtime error
用VC++编了个程序,debug的时候就出现如下错误:rn<em>runtime</em> <em>error</em>!rnprogram:c:\代码\debug\hr.exernrnthis application has requested the <em>runtime</em> to terminate it in an unusual way. please contact the application's suppor team for more information.rnrn这个问题要怎么解决呢?是不是要重装VC呢?谢谢
runtime error怎么解决
[img=http://img.my.csdn.net/uploads/201211/13/1352780799_9269.jpg][/img]rnrn注册表也找不到 这是什么情况?
求助:Runtime Error!
主程序调用的一个函数在一个模块(module)中。单步调试进入这个模块时,vb抛出这个错误:Runtime Error!rnprogram:vb.exernabnormal program terminationrnrn随后vb退出。请问是什么原因?
Runtime error 217 at 00402840
出錯了!rn信息為: rn Runtime <em>error</em> 217 at 00402840rnrn但不知怎說rn真是的rn我用的是6.0+oracle8i+ADOrn退出程序時報錯,跟蹤,出錯是在 "End."位置rn但是我用全部編譯,不管運行多少次,不會出錯!rnrn
Runtime error问题,急!
我用的是WINME系统,进入系统后,在桌面上点击鼠标右键,出现”Microsoft Visual C++ Runtime Library面板“如下内容:rnRuntime Error !rnProgram:C:\WINDOWS\EXPLORER.EXErnabnormal program termination
求救:Runtime Error问题
做的一个dialog based project,编译链接都没问题,本来可以运行的,后来一次link的时候死掉了,就用任务管理把它结束掉了后来就执行不了了,而且别的project也执行不了了,怎么解决呀?rnthanks!rnrn补充下,错误提示:rnRuntime <em>error</em>!rnprogram:...rnThis application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
runtime Error!救急!
这几天很奇怪!很多程序一打开都出现这个错误.rn<em>runtime</em> Error!rnprogram :..ram Files\macromedia\Dreamweaver mx 2004\Dreamweaver.exernthis application has request the <em>runtime</em> to terminate it in an unusual way.please contace the appliction's support team for more infomationrn有些程序重装一下就可以.比如flashget.但Dreamweaver死活都不行.安装了三次都出现这个问题.rn哪位大侠帮忙解决一下啊!
runtime error帮忙看看
为什么我的程序运行时间长了偶尔会出现<em>runtime</em> <em>error</em> 的错误(release版),并不是每次都出.rndebug下会出现"应用程序发生异常 unknow software exception(0x80000003)"的错误.rn请问会是什么错误,有人说是内存泄漏了,但是为什么不是每次都泄漏那?
一个runtime error的问题
10. public class Money rn11. private String country, name;rn12. public getCountry() return country; rn13.rnand:rn24. class Yen extends Money rn25. public String getCountry() return super.country; rn26. rn27.rn28. class Euro extends Money rn29. public String getCountry(String timeZone) rn30. return super.getCountry();rn31. rn32. rnWhich two are correct? (Choose two.)rnA. Yen returns correct values.rnB. Euro returns correct values.rnC. An exception is thrown at <em>runtime</em>.rnD. Yen and Euro both return correct values.rnE. Compilation fails because of an <em>error</em> at line 25.rnF. Compilation fails because of an <em>error</em> at line 30.rnAnswer: BErnrn选择BE都没错, 为什么C. An exception is thrown at <em>runtime</em>. 没被选上?rn谁帮忙解释下
IE的Runtime Error 问题
Runtime Error rnrnProgram: C:\Program Files\internet explorer\iexplorer.exe rnrnThis application has requested the Runtime to terminate it in an unusual way. Please contact the applications support team for more information. rnrn网上找了下,说是google工具栏之类的,但我没有装这个,在调用 applet时出现这个问题,
RUNTIME ERROR!什么原因?
我的程序是一个读取串口的,用VC编的。rn在运行过程中<em>老是</em>提示RUNTIME ERROR !但有时确能正确运行!rn请问这是什么原因?那位给个提示,不胜感激!
还是runtime error
维护一个网站,在网站上传一些更新内容之后,偶尔几次还好,多上传几次之后网站页面就出现了Runtime Error rnrnrnrn[code=XML]Runtime Error rnDescription: An application <em>error</em> occurred on the server. The current custom <em>error</em> settings for this application prevent the details of the application <em>error</em> from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. rnrnDetails: To enable the details of this specific <em>error</em> message to be viewable on remote machines, please create a tag within a "web.config" configuration file located in the root directory of the current web application. This tag should then have its "mode" attribute set to "Off".rnrnrnrnrnrn rn rn rnrn rnrnNotes: The current <em>error</em> page you are seeing can be replaced by a custom <em>error</em> page by modifying the "defaultRedirect" attribute of the application's configuration tag to point to a custom <em>error</em> page URL.rnrnrnrnrnrn rn rn rnrn rn[/code]rnrnrn奇怪的是每次出现这个错误后,在iis里停止一下应用程序池,再重启,网站又能正常使用了,目前这个是仅有的权益之计,不知道该怎么彻底解决
菜鸟求教 runtime error
Descriptionrnrn有一楼梯共M级,刚开始时你在第一级,若每次只能跨上一级或二级,要走上第M级,共有多少种走法?rnrnInputrnrn输入数据首先包含一个整数N,表示测试实例的个数,然后是N行数据,每行包含一个整数M( 1 ,&n)!=EOF)rnrn getchar();rn for(i=0;i
为什么runtime error???
#includern#includern#includernusing namespace std;rnint main()rnrn int n;rn cin>>n;rn char pre[105][105];rn int *preNum = new int[n]; rn for(int i = 0; i < n; i++)rn preNum[i] = 1;rn for(int i = 0; i < n; i++)rn rn char *text = new char[105];rn memset(text,'\0', sizeof(text));rn cin>>text;rn int j=0, k =0;rn while(text[j] != '\0')rn rn if(text[j] == '-')rn rn j++;rn continue;rn rn switch(text[j++])rn rn case'0': pre[i][k++] = '0';break;rn case'1': pre[i][k++] = '1';break;rn case'A':case'B':case'C':case'2': pre[i][k++] = '2';break;rn case'D':case'E':case'F':case'3': pre[i][k++] = '3';break;rn case'G':case'H':case'I':case'4': pre[i][k++] = '4';break;rn case'J':case'K':case'L':case'5': pre[i][k++] = '5';break;rn case'M':case'N':case'O':case'6': pre[i][k++] = '6';break;rn case'P':case'R':case'S':case'7': pre[i][k++] = '7';break;rn case'T':case'U':case'V':case'8': pre[i][k++] = '8';break;rn case'W':case'X':case'Y':case'9': pre[i][k++] = '9';break;rn default:break;rn rn if(k == 3)rn rn pre[i][k++] = '-'; rn rn rn pre[i][k] = '\0';rn rnrn for(int i = 0; i < n-1;i++)rn rn for(int j = i + 1; j < n;j++)rn rn if(strcmp(pre[i], pre[j]) > 0)rn rn char stmp[105];rn strcpy(stmp, pre[i]);rn strcpy(pre[i],pre[j]);rn strcpy(pre[j], stmp);rn rn rn rn for(int i = 1; i < n; i++)rn rn for(int j = 0; j < i; j++)rn rn if(strcmp(pre[i],pre[j]) == 0)rn rn preNum[j]++;rn break;rn rn rn rn bool flag = false;rn for(int i = 0; i < n; i++)rn rn rn if(preNum[i]>1)rn rn flag = true;rn cout<
求助“Runtime Error”
最近在学数据库的编程想写一个电话本的程序,刚刚开始就出问题了,当我选择nflag=1时,出现查询结果的同时出现“Runtime Error”,当我选择nflag=2时,结果都没有,过好长一会儿出现“Runtime Error”,不知道是怎么回事,请高手指点指点。rnvoid CPhoneBookDlg::OnBtnQuery() rnrn CoInitialize(NULL);rn _ConnectionPtr pConn(__uuidof(Connection));rn _RecordsetPtr pRst(__uuidof(Recordset));rn _CommandPtr pcmd(__uuidof(Command));rn pConn->ConnectionString="Provider=SQLOLEDB.1;Persist Security Info=False;Integrated Security=SSPI;User ID=sa;Initial Catalog=PhoneBook;Data Source=MICROSOF-B77E96";rn pConn->Open("","","",adConnectUnspecified);rn if(1==nflag)rn rn pRst=pConn->Execute("select * from famliy",NULL,adCmdText);rn while(!pRst->cjEOF)rn for(int i=0;iFields->Count;i++)rn m_list.InsertItem(i,(char*)(_bstr_t)(pRst->Fields->GetItem(_variant_t("famliy_id"))->GetValue()));rnrn m_list.SetItemText(i,1,(char*)(_bstr_t)(pRst->Fields->GetItem(_variant_t("famliy_name"))->GetValue()));rnrn m_list.SetItemText(i,2,(char*)(_bstr_t)(pRst->Fields->GetItem(_variant_t("famliy_phone"))->GetValue()));rnrn m_list.SetItemText(i,3,(char*)(_bstr_t)(pRst->Fields->GetItem(_variant_t("famliy_mobile"))->GetValue()));rn m_list.SetItemText(i,4,(char*)(_bstr_t)(pRst->Fields->GetItem(_variant_t("famliy_email"))->GetValue()));rnrn m_list.SetItemText(i,5,(char*)(_bstr_t)(pRst->Fields->GetItem(_variant_t("famliy_address"))->GetValue()));rn pRst->MoveNext();rn rn rn rn else if(2==nflag)rn pRst=pConn->Execute("select * from friends",NULL,adCmdText);rnrn while(!pRst->cjEOF)rn _variant_t varNo;rn _variant_t varName;rn _variant_t varAge;rn _variant_t varSex;rn _variant_t varPhone;rn _variant_t varMobile;rn _variant_t varQQ;rn _variant_t varEmail;rn _variant_t varAddress;rn rn varNo = pRst->GetCollect("friends_id");rn varName = pRst->GetCollect("friends_name");rn varAge= pRst->GetCollect("friends_age");rn varSex = pRst->GetCollect ("friends_sex");rn varPhone=pRst->GetCollect("friends_phone");rn varMobile=pRst->GetCollect("friends_mobile");rn varQQ=pRst->GetCollect("friends_qq");rn varEmail=pRst->GetCollect("friends_email");rn varAddress = pRst->GetCollect ("friends_address");rn rn CString strNo =(char *)_bstr_t(varNo);rn CString strName =(char *)_bstr_t(varName);rn CString strAge =(char *)_bstr_t(varAge);rn CString strSex =(char *)_bstr_t(varSex);rn CString strPhone =(char *)_bstr_t(varPhone);rn CString strMobile =(char *)_bstr_t(varMobile);rn CString strQQ =(char *)_bstr_t(varQQ);rn CString strEmail =(char *)_bstr_t(varEmail);rn CString strAddress =(char *)_bstr_t(varAddress);rn rn strNo.TrimRight();rn strName.TrimRight();rn strAge.TrimRight();rn strSex.TrimRight();rn strPhone.TrimRight();rn strMobile.TrimRight();rn strQQ.TrimRight();rn strEmail.TrimRight();rn strAddress.TrimRight();rn rnfor(int i=0;iGetRecordCount();i++)rn m_list.InsertItem (i,strNo);rn m_list.SetItemText (i,1,strNo);rn m_list.SetItemText (i,2,strName);rn m_list.SetItemText (i,3,strAge);rn m_list.SetItemText (i,4,strSex);rn m_list.SetItemText(i,5,strPhone);rn m_list.SetItemText(i,6,strMobile);rn m_list.SetItemText(i,7,strQQ);rn m_list.SetItemText(i,8,strEmail);rn m_list.SetItemText(i,9,strAddress);rnrn pRst->MoveNext();rnrn rn else if(3==nflag)rn pRst=pConn->Execute("select * from client",NULL,adCmdText);rn while(!pRst->cjEOF)rn ((CListBox *)GetDlgItem(IDC_LIST))->AddString(rn (_bstr_t)pRst->GetCollect("client_mobile"));rn pRst->MoveNext();rn rn rn else MessageBox("请选择一个表!");rn rn pRst->Close();rn pConn->Close();rn pRst.Release();rn pConn.Release();rn CoUninitialize();rnrnrn
BufferQueue RunTime Error
【Android】用到摄像头的时候界面卡住,日志里大量打印 [SurfaceView] dequeueBuffer: min undequeued buffer count (2) exceeded (dequeued=8 undequeudCount=0)n
MFC程序的Runtime error
我程序在Debug进行调试时,没有错误提示,当运行时,出现如下错误:rn[img=http://hi.csdn.net/attachment/201111/29/3305920_1322532537R4Vl.gif][/img]rn我查找了下相关资料,有说是rn【原因:rn如果使用 /GR 和 /MD 编译器开关,并且 Msvcrt.dll 文件和 Msvcirt.dll 文件的版本是 7.0.x,则可能出现此问题。rn注意:rn当使用早于 7.0 版本的 Msvcrt.dll 文件和 Msvcirt.dll 文件时,不会出现此问题。 rn需要下载早期的Msvcrt.dll 文件和 Msvcirt.dll 文件或安装微软补丁来解决程序运行出错的问题。】rn在本机搜索了这几个文件,文件版本号确实为7.0.x。rnrn 原来打包好的程序,在运行较长时间时没出错。现在运行几分钟即出现如下错误,请大家帮忙判断下原因,或给点参考意见,谢谢!rn[img=http://hi.csdn.net/attachment/201111/29/3305920_1322532537ZMJz.gif][/img]rn
runtime error 错误
我编译好了 无错误 但是运行时它跳出一个窗口rn“Runtime Error!rnThis application has requested the Runtime to terminate it in an unusual way.Please contact the application's support team for more information"rn请问这个问题怎么解决啊?rn
高手快进:Runtime Error!
我想做一个基于单文档的数据库(SQL Server)程序,通过选择菜单弹出一个对话框,输入相应的数据后单击OK按钮保存。但是在我单击OK按钮后,弹出两个错误对话框,内容分别如下:rn1、Runtime Error!rn program: F:\DB1.exern abnormal program terminationrn2、rn "0x6681250e" 指令引用的"0x0586f00f"内存。该内存不能为"written"。rn 要终止程序,请单击"确定"。rn然后程序自动退出。rnrn该如何解决?rn还有。我对如何调试程序一窍不通,有没有人传授一下经验,或推荐一些教程之类的,不胜感激。rn
runtime error 未找到提供者
打包安装后,出错
runtime error (运行时错误)
<em>runtime</em> <em>error</em> (运行时错误)就是程序运行到一半,程序就崩溃了。 比如说: ①除以零 ②数组越界:int a[3]; a[10000000]=10; ③指针越界:int * p; p=(int *)malloc(5 * sizeof(int)); *(p+1000000)=10; ④使用已经释放的空间:int * p; p=(int *)malloc(5 * sizeof(i
asp.net 网页 runtime error
我的程序本地运行正常,但是放到服务器以后,能正常登陆一个页面,但是在该页面上向服务器调提交数据时出现 <em>runtime</em> <em>error</em> 错误,如下:rnDescription: An application <em>error</em> occurred on the server. The current custom <em>error</em> settings for this application prevent the details of the application <em>error</em> from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine. rn后面大家都懂得,网上有的说法是IIS中.net 配置错误,但是如果是此错误的话,登陆的时候就会出错吧,可我能正常登陆到网页。。。。。(我用的vs2010 .net framwork 4.0),高手帮我分析分析,谢谢
poj1118 runtime error
http://poj.org/problem?id=1118rn解题的思路是找到任意两个点所确定的直线的斜率和当横坐标为0是纵坐标的值,但是就是一直出现错误,所以求大神帮忙啊!rn#includernusing namespace std;rntypedef struct funrnrn double k,y;//分别代表的是斜率和横坐标为0是纵坐标的值的rnr;rnfun a[4900];rnint cmp(const void *a,const void *b)rnrn fun *c=(fun *)a;rn fun *d=(fun *)b;rn if(c->k-d->k>0.000001 || c->k-d->kk>d->k?-1:1;rn elsern return c->y>d->y?-1:1;rnrnint main()rnrn int n,i,j,point[705][2],k;rn while(1)rn rn cin>>n;rn if(n==0)rn break;rn for(i=0 ;i>point[i][0]>>point[i][1];rn k=0;rn for(i=0; isign)rn sign=t;rn t=1;rn rn rn if(t>sign)rn sign=t;rn cout<
Runtime Error 430
不好意思打扰你!我最近遇到一个问题! 我在用VB的做数据库的时候,提示:rn Runtime Error 430rn Class dose not support automation or does not support expected interface.rn 不知道这是什么问题!我的程序是在2000+VB6.0做的,2000下没有问题,但是在Win98下不可以运行。小弟乃初学者,请各位大哥多多执教!在此感激不尽!!rn 谢谢!!!!rn
Runtime Error R6034错误。。。
[img=http://hi.csdn.net/attachment/201110/9/10166273_1318121384S8U6.jpg][/img]rn错误图片如上,是VS2005写的一个小程序,连接sqlserver2000数据库进行一些基本数据处理,一开始好用,后来服务器被别人安装了framework 4.0后,就开始弹各种错误了,现在解决到这里,错误太笼统了,上网一搜,各种原因,闹的头昏脑胀也没个结果,一般遇到这种特笼统的错误都应该怎样解决?有什么好的方法么?该问题急需解决,求各位帮帮忙。
runtime error!help!
void CAdoDlg::OnOK() rnrn // TODO: Add extra validation herern UpdateData(1);rn if(m_SXM=="")rn rn MessageBox("输入姓名不为空");rn return;rn rn if(m_SXH==0)rn rn MessageBox("输入学号不为空");rn rn _RecordsetPtr pRs;rn if (FAILED(pRs.CreateInstance("ADODB.Recordset")))rn rn AfxMessageBox("Create Instance failed!");rn return;rn rn CString strSRC=GetConnStr();rn if (FAILED(pRs->Open("select * from 学生",(_variant_t)strSRC,adOpenStatic,adLockOptimistic,adCmdText)))rn rn AfxMessageBox("Can not open Database!");rn pRs.Release();rn return;rn rn pRs->AddNew();rn pRs->PutCollect("姓名",(_variant_t)m_SXM);rn// pRs->PutCollect("学号",(_variant_t)m_SXH);rn// pRs->PutCollect("成绩",(_variant_t)m_SCJ);rn pRs->Update();rn pRs.Release();rnrn运行后就出现了这个错误晕死!最近学校让做项目才学还请大家帮帮忙!
VC++ Runtime error
void CExamOnlineDlg::OnBack() rn rn UpdateData();rn CButton* m_checkA=(CButton*)GetDlgItem(IDC_RADIO_A);rn CButton* m_checkB=(CButton*)GetDlgItem(IDC_RADIO_B);rn CButton* m_checkC=(CButton*)GetDlgItem(IDC_RADIO_C);rn CButton* m_checkD=(CButton*)GetDlgItem(IDC_RADIO_D);rn //////////////////////////////////////////rn CString question;rn CString Id;rn CString answer;rn CString sql;rnrn if(testnum==1)rn rn AfxMessageBox("这已经是第一题了");rn return;rn rnrnrn m_AdoConn.OnInitADOConn();rnrn sql.Format("select * from examminginfo where testnum=%d",testnum);rn m_pRs=m_AdoConn.GetRecordSet((_bstr_t)sql);rn sql.Format("update examminginfo set answer='%s' where testnum=%d",Answer,testnum);rn [color=#FF0000]answer=(char*)(_bstr_t)m_pRs->GetCollect("answer");//如果加上这一行就出问题,不加没事[/color] if(answer!=Answer)rn m_AdoConn.ExecuteSQL((_bstr_t)sql);rn m_Test.GetWindowText(question);rn testnum--; rn sql.Format("select * from ExammingInfo where testnum=%d",testnum);rn m_pRs=m_AdoConn.GetRecordSet((_bstr_t)sql); rn question=(char*)(_bstr_t)m_pRs->GetCollect("question");rn answer=(char*)(_bstr_t)m_pRs->GetCollect("answer");rn Id.Format("题号:%d",testnum);rn m_TestID.SetWindowText(Id);rn m_Test.SetWindowText(question);rn Answer=answer; rn PutAnswer();rn if(answer=='A')rn rn m_checkA->SetCheck(true); rn m_checkB->SetCheck(false);rn m_checkC->SetCheck(false);rn m_checkD->SetCheck(false);rn rn if(answer=='B')rn rn m_checkB->SetCheck(true);rn m_checkA->SetCheck(false);rn m_checkC->SetCheck(false);rn m_checkD->SetCheck(false);rn rn if(answer=='C')rn rn m_checkC->SetCheck(true);rn m_checkA->SetCheck(false);rn m_checkB->SetCheck(false);rn m_checkD->SetCheck(false);rn rn if(answer=='D')rn rn m_checkD->SetCheck(true);rn m_checkA->SetCheck(false);rn m_checkB->SetCheck(false);rn m_checkC->SetCheck(false);rn rnrnrnrnrnrn[color=#FF0000]错误是 visual c++ Runtime Library Runtime Error! [/color]
Runtime Error 错误处理
写的一个网络程序在网络连通的情况下一切正常。rn断开网络,运行会出现Runtime Error rnthis application has requested the Runtime to terminate it in an unusual wayrn应该怎么处理?
反射与动态代理详细文件下载
详细讲解了反射与动态代理的结合使用, 通过一些示例,将学飞者很快掌握 相关下载链接:[url=//download.csdn.net/download/snfneeq2009/2988171?utm_source=bbsseo]//download.csdn.net/download/snfneeq2009/2988171?utm_source=bbsseo[/url]
c#音像店管理系统下载
适合本专科的课程设计用,,希望能帮你们学习和参考 相关下载链接:[url=//download.csdn.net/download/maquan127127/4873393?utm_source=bbsseo]//download.csdn.net/download/maquan127127/4873393?utm_source=bbsseo[/url]
数字图书管理系统下载
数字图书管理系统,ASP.NET程序,采用VS2012开发工具,数据库为SQL Server2008 相关下载链接:[url=//download.csdn.net/download/caiyizhen888/8213097?utm_source=bbsseo]//download.csdn.net/download/caiyizhen888/8213097?utm_source=bbsseo[/url]
相关热词 c#检测非法字符 c#双屏截图 c#中怎么关闭线程 c# 显示服务器上的图片 api嵌入窗口 c# c# 控制网页 c# encrypt c#微信网页版登录 c# login 居中 c# 考试软件
我们是很有底线的