C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types
solution :
http://stackoverflow.com/questions/6167609/some-problem-with-afxmessagebox-mfc-function
(1)
You may, although I doubt this, have to scope it globally. To do that, try
::AfxMessageBox("Camera have no connection",MB_OK|MB_ICONSTOP);
(2)
The other is that use are building for unicode and it thinks the string is multi-byte. To do that, try
AfxMessageBox( L"Camera have no connection",MB_OK|MB_ICONSTOP);
I'm out of town, on my Mac, so I can't test this. But I have been stuck in the office on weekends so I figured I'd offer up two things to try.