我在我的C++程序中使用MFC(使用VisualStudio2008)。我必须在程序开始时调用AfxGetInstanceHandle()。这个函数触发一个断点:AFXWIN_INLINEHINSTANCEAFXAPIAfxGetInstanceHandle(){ASSERT(afxCurrentInstanceHandle!=NULL);returnafxCurrentInstanceHandle;}ASSERT语句失败。在我们尝试访问afxCurrentInstanceHandle之前,是否需要做一些特殊的事情来初始化它?PS:我在共享dll中使用MFC。编辑我的代码是这样的:in