今天我的VC++程序出现个怪问题 请大家救命!!上午还是好好的 下午编译开始时没在意,后来发现无论怎么编译运行,都不报错,都显示0错误0警告,我故意改错几处还是说没错误 可以运行 但到有错处当然非法关闭。情急中 我看见了编译--清洁 点了后出现18处警告 无论怎么改都是18处 而且我认为这些错误是没有错的 因为我上午和昨天刚运行过 在那个上继续做的报的18处错都是一个ADO类中的请问这是怎么了??
调试欢乐多
Compiling...
StdAfx.cpp
Compiling...
find.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\jiang\wis\find.cpp(208) : warning C4244: '=' : conversion from 'long' to 'short', possible loss of data
gjtable.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\jiang\wis\gjtable.cpp(112) : warning C4244: '=' : conversion from 'long' to 'short', possible loss of data
HADO.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
Intable.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\jiang\wis\Intable.cpp(130) : warning C4244: '=' : conversion from 'long' to 'short', possible loss of data
ktable.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\jiang\wis\ktable.cpp(148) : warning C4244: '=' : conversion from 'long' to 'short', possible loss of data
login.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
MainFrm.cpp
Outtable.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
D:\jiang\wis\Outtable.cpp(114) : warning C4244: '=' : conversion from 'long' to 'short', possible loss of data
wis.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
wisDoc.cpp
wisSet.cpp
wisView.cpp
d:\jiang\wis\release\msado15.tlh(403) : warning C4146: unary minus operator applied to unsigned type, result still unsigned
Generating Code...
D:\jiang\wis\HADO.cpp(114) : warning C4715: 'CADODatabase::BeginTrans' : not all control paths return a value
D:\jiang\wis\HADO.cpp(136) : warning C4715: 'CADODatabase::CommitTrans' : not all control paths return a value
D:\jiang\wis\HADO.cpp(158) : warning C4715: 'CADODatabase::RollBackTrans' : not all control paths return a value
D:\jiang\wis\HADO.cpp(347) : warning C4700: local variable 'field' used without having been initialized
Linking...wis.exe - 0 error(s), 18 warning(s)这些是报的警告 大家分析一下 我感觉原代码没什么问题