Now, i get this error: Unhandled exception at 0x00530a33 in MyPrg.exe: 0xC0000005: Access violation reading location 0x1271e40a. and control goes to:
void CWnd::SetWindowText(LPCTSTR lpszString)
{
ENSURE(this);
ENSURE(::IsWindow(m_hWnd) || (m_pCtrlSite != NULL));
if (m\_pCtrlSite == NULL)
::SetWindowText(m\_hWnd, lpszString);
else
**m\_pCtrlSite->SetWindowText(lpszString);// control points here**
}