
VC中ExitIstance()这个函数不理解
关于一个函数intCXXXXXApp::ExitInstance()例如我新建了一个工程abc那么我使用CabcApp::ExitIstance()时为什么还要重新定义E...
关于一个函数
int CXXXXXApp::ExitInstance()
例如我新建了一个工程abc
那么我使用CabcApp::ExitIstance()时为什么还要重新定义Exitistance()函数?(因为CWinApp::ExitInstance()不用定义,产生了疑问)
难道Exitistance()是不存在的吗?如果不存在为什么会打CabcApp::时弹出来,还有这个函数的return CWinApp::ExitInstance();应该怎么理解,我是小白,希望高人指点!感激不尽! 展开
int CXXXXXApp::ExitInstance()
例如我新建了一个工程abc
那么我使用CabcApp::ExitIstance()时为什么还要重新定义Exitistance()函数?(因为CWinApp::ExitInstance()不用定义,产生了疑问)
难道Exitistance()是不存在的吗?如果不存在为什么会打CabcApp::时弹出来,还有这个函数的return CWinApp::ExitInstance();应该怎么理解,我是小白,希望高人指点!感激不尽! 展开
展开全部
The ExitInstance member function of class
CWinApp is called each time a copy of your
application terminates, usually as a result of the user quitting the
application.
Override ExitInstance if you need special cleanup processing, such as
freeing graphics device interface (GDI) resources or deallocating memory used
during program execution. Cleanup of standard items such as documents and views,
however, is provided by the framework, with other overridable functions for
doing special cleanup specific to those objects.
上面是MSDN上的解释,看不懂的地方查词典吧!
CWinApp is called each time a copy of your
application terminates, usually as a result of the user quitting the
application.
Override ExitInstance if you need special cleanup processing, such as
freeing graphics device interface (GDI) resources or deallocating memory used
during program execution. Cleanup of standard items such as documents and views,
however, is provided by the framework, with other overridable functions for
doing special cleanup specific to those objects.
上面是MSDN上的解释,看不懂的地方查词典吧!
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询