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.
本文详细介绍了MFC应用程序类初始化过程中的关键步骤。包括如何在初始化函数InitInstance中添加OLE/COM初始化代码、实例化连接指针及连接数据库对象等。此外还提供了AfxEnableControlContainer及AfxMessageBox的使用示例。
321

被折叠的 条评论
为什么被折叠?



