我要在不同的类之间传递数据,是不是只有把这个变量定义成全局变量,然后用AfxGetApp()->调用它??但总是出Debug Assertion的错误
File:Winocc.CPP
Line:345
.....
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)怎么解决这个错误?
或者有别的方法?
File:Winocc.CPP
Line:345
.....
ASSERT(m_pCtrlSite != NULL); // not an OLE control (not yet, at least)怎么解决这个错误?
或者有别的方法?
你可以在外面 class CYourApp;
((CYourApp*)AfxGetApp())->Method();
unresolved external symbol "float * abcde" (?abcde@@3PAMA)
不知道错在哪里??
extern float output[22];
在AbcProject.cpp中,
float output[22];
其他用到output[22]数据的文件就include"AbcProject.h"
这样就会有鏈接的错误。
在Stdafx.h中加extern float output[22];