Hi, im trying to update the value of an edit box in a modeless dialog box, but I keep getting the following error message:

error C2039: 'SetWindowTextA' : is not a member of 'ATL::CStringT<BaseType,StringTraits>'

Here is the code:

void MySdk2Client::SdkDataHasArrived(sFrameOfData* data)
{

WriteFrame(data);

// Stop accepting frames of data once we reach the number set by the user

if (++m_frameCount == m_maxFrames)

{
m_acceptData = false;
}

if (m_frameCount % 10 == 0)

{

CString m_NOFR;

m_NOFR.SetWindowText("%d\r", m_frameCount);

}
}


Here is code from the dialog box:

void CConnectDlg::OnBnClickedOk()
{
CString m_Eipaddress;
GetDlgItem( IDC_EDT_EIPADDRESS )->GetWindowText( m_Eipaddress);

CString m_Cipaddress;
GetDlgItem( IDC_EDT_CIPADDRESS )->GetWindowText( m_Cipaddress);


CString m_NOFTR;
GetDlgItem( IDC_EDT_NOFTR )->GetWindowText( m_NOFTR);


{
MySdk2Client sdkClient;


// Try to connect to the given server
if (sdkClient.Connect(m_Eipaddress, m_Cipaddress,atoi(m_NOFTR)))
{
m_Status.SetWindowText("Connected");

// Just wait until we've received the required number of frames
while (sdkClient.IsFinished() == false)
{
Sleep(1000);
}
sdkClient.Disconnect();
m_Status.SetWindowText("Finished Recording Frames");
}
else
{

m_Status.SetWindowText("Could not connect to System");
}


}


}

What i don't understand is, im using setwindowtext for m_status and it works fine.
Any help will be greatly appreciated.

thanks
steph