MFC中,,在APP应用类的初始化函数中,,添加初始代码的位置:
{
//是在这个函数中,,,可添加OLE/COM的初始化,,连接指针的的实例化,,,连接数据库对象。。!!!!!!!!!!!!!!!
AfxMessageBox("app");//
// Standard initialization
// If you are not using these features and wish to reduce the size
// of your final executable, you should remove from the following
// the specific initialization routines you do not need.