这是一个工程中InitInstance()中的一段代码
AfxEnableControlContainer(); // 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.#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif
    HANDLE HMutext=CreateMutex(NULL,true,"MutexofForeGroudApp");
if(GetLastError()==ERROR_ALREADY_EXISTS)
{
   MessageBox(NULL,"程序已运行","提示",MB_OK|MB_ICONINFORMATION);
   return false;
}
BOOL bafxcreate=AfxOleInit();  //正确
_Application app1;
bool ibss=app1.CreateDispatch("Word.Application");    //此处ibss总是为0
    
新建工程一样的代码确实正确的。搞不懂了!是不是因为我的工程的问题。工程的debug目录,output file name 目录都已经被我改变n多次了。而且也出了n次问题。现在我快要被搞死了。都是一些莫名其妙的错误。不知道如何才好。
哪位有类似调试的功能介绍啊?要是让我重新生成项目就要烦死了东西n多呢。救急!!!!!!!!