Code://Class header CString m_cstrArry[5];Hope I'm clear about my qus by the commented lines.Code://Class source void Ctry4Dlg::OnInitDialog() { m_cstrArry[0] = _T("TEXT 0 |"); m_cstrArry[1] = _T("TEXT 1 |"); m_cstrArry[2] = _T("TEXT 2 |"); m_cstrArry[4] = _T("TEXT 4 |"); } void Ctry4Dlg::CheckCStringRef(CString *cstrTextArr) { size_t iSiz = sizeof(cstrTextArr); //is it correct to calculate array length this way ? CString cstrWholeText = _T(""); if(cstrTextArr != NULL) { for(int i=0; i<5; i++) //here I want to use returned array size ie: iSiz { cstrWholeText = cstrWholeText + cstrTextArr[i]; } } } void Ctry4Dlg::OnBnClickedOk() { CheckCStringRef(m_cstrArry); //passing the array to my function to process further }