I had a similar problem. I made the following chnages

MessageBox(NULL, _T(errorMsg), _T("socketIndication"), MB_OK);

Now it says: _T identifier not found.
Can you please help me here.
...