各位:
我的程序在debug下编译一切正常,但在release下编译出错:
错误信息:
1、fatal error C1010: unexpected end of file while looking for precompiled header directive
2、error C2509: 'GetDocument' : member function not declared in 'CMyListView'
第二个错误总是指向.h中的:
#ifndef _DEBUG // debug version in viewgrid.cpp
inline CTreeListDoc* CMyListView::GetDocument()
{ return (CTreeListDoc*)m_pDocument; }
#endif
我实在没辙了,请大家帮忙!!!!先谢谢了!
我的程序在debug下编译一切正常,但在release下编译出错:
错误信息:
1、fatal error C1010: unexpected end of file while looking for precompiled header directive
2、error C2509: 'GetDocument' : member function not declared in 'CMyListView'
第二个错误总是指向.h中的:
#ifndef _DEBUG // debug version in viewgrid.cpp
inline CTreeListDoc* CMyListView::GetDocument()
{ return (CTreeListDoc*)m_pDocument; }
#endif
我实在没辙了,请大家帮忙!!!!先谢谢了!
http://www.codetools.com/debug/releasemode.asp看一看也许有帮助
class CMyListView
{
...
#ifndef _DEBUG
CTreeListDoc* CMyListView::GetDocument()
{ return (CTreeListDoc*)m_pDocument; }
#endif
};
class CMyListView
{
...
#ifndef _DEBUG
CTreeListDoc* GetDocument()
{ return (CTreeListDoc*)m_pDocument; }
#endif
};
我想我该放弃VC了,这个东东真是害死人啦,学JAVA去吧。
再一次对各位的帮助表示感谢!!!
你可以试试将下面的语句:
#ifndef _DEBUG // debug version in viewgrid.cpp
inline CTreeListDoc* CMyListView::GetDocument()
{ return (CTreeListDoc*)m_pDocument; }
#endif
挪到CMyListView类的定义中。或在CMyListView类的定义中加入下面的语句:
#ifndef _DEBUG // debug version in viewgrid.cpp
inline CTreeListDoc* GetDocument();
#endif
另外,学JAVA可以,但是你就保证在JAVA中不会遇到类似的问题么?
另外,你的这个CMyListView是继承自那个类?