我在Debug版本中可以正常运行,但当我静态编译为Relase版本后,运行起来就会出现错误!
解决方案 »
- ADO方式连数据库,需要不停查询的疑惑
- 如何实现标签页式的切换窗口?
- 做好了一个CTreeCtrl之后如何添加加一个垂直滚动条呀
- 怎样使基于对话框的应用程序不显示窗口?
- 简单的CString问题
- 有谁知道哪里有清华大学的计算机教程的下载啊,谢谢先!
- 一个调用的问题
- 如何固定一个显示区域,以便重绘时不影响同一窗口中已经显示的图形?
- 做数据库界面时的小难题,界面本来在重载PreTranslateMessage后,实现了用回车使光标在控件中顺序出现,但。。。
- 非高手莫入 ,以免浪费大家宝贵时间!!!
- 急急急!!!如何把Unicode码转换为内码???????
- 写了点东西,相信对英语不好的朋友有点用,up有分
就是这个问题!大家请帮忙
--------------------Configuration: DataCenter - Win32 Release--------------------
Compiling resources...
Compiling...
StdAfx.cpp
e:\vc程序\datacenter\release\msado15.tlh(407) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
Compiling...
ColorStatic.cpp
DataCenter.cpp
DataCenterDoc.cpp
DataCenterView.cpp
DealData.cpp
E:\VC程序\DataCenter\DealData.cpp(87) : warning C4244: '=' : conversion from 'double' to 'int', possible loss of data
DlgColor.cpp
DlgDB.cpp
DlgGME1.cpp
DlgPort.cpp
LeftView.cpp
ListenSck.cpp
MainFrm.cpp
RecvSck.cpp
E:\VC程序\DataCenter\RecvSck.cpp(39) : warning C4154: deletion of an array expression; conversion to pointer supplied
RegGME.cpp
ShowDlg.cpp
Generating Code...
Linking...DataCenter.exe - 0 error(s), 3 warning(s)
E:\VC程序\DataCenter\RecvSck.cpp(39) : warning C4154: deletion of an array expression; conversion to pointer supplied
不能在数组上使用 delete,所以编译器将数组转换为指针。
code1 产生警告:
int array[ 10 ];
delete array;
code2 正确的写法:
去掉delete array;因为你没有用到new,它会自己释放的。