I need a public buffer to use in CLoongIndiSelect::GetData(). I can define a public buffer, but there is a double m_data[]. So, why do not use it?
// CLoongIndiBuffer << CIndicatorBuffer << CArrayDouble << CArray << CObject // need a public buffer protected // to use in m_data[] // CLoongIndiSelect::GetData class CLoongIndiBuffer : public CIndicatorBuffer { protected: //CObject* ReturnPointer(double& buffer[]) {return (CObject*)buffer;} public: double m_buffer[]; //need a public buffer to use in CLoongIndiSelect::GetData //It can run. But I want to use the m_data[] that inherit from CArrayDouble //How to publicize the m_data[] in CArrayDouble? //I have tried these code, they are error. //double* GetBuffer() {return m_data;} //double[] GetBuffer() {return m_data;} //CObject* GetBuffer() {ReturnPointer(m_data);} //CObject* GetBuffer() {return (CObject*)(m_data[]);}
I need a public buffer to use in CLoongIndiSelect::GetData().
I can define a public buffer, but there is a double m_data[].
So, why do not use it?