BOOL CMytestApp::InitInstance()
{
// TODO: Add your specialized code here and/or call the base class
//初始化COM,创建ADO连接等操作
AfxOleInit();
m_DBCnt.CreateInstance(__uuidof(Connection));
int CMytestApp::ExitInstance()
{
// TODO: Add your specialized code here and/or call the base class
if(m_DBCnt->State)
m_DBCnt->Close();
m_DBCnt= NULL;