关于ADO记录集
_ConnectionPtr g_DB;
_RecordsetPtr g_Set;
g_DB.CreateInstance(__uuidof(Connection));
g_DB->Open("DSN=citynet;UID=citynet;PWD=citynet","","",-1);
g_Set->Open("Select * from tcsx",g_DB.GetInterfacePtr(), adOpenStatic,adLockOptimistic,adCmdText);
编译没有错误。运行后出现运行时错误,然后程序就退出了。为什么?看不见任何错误信息。