C2665: 'AfxMessageBox' : none of the 2 overloads could convert all the argument types
할거리/VC 2015. 7. 20. 15:59C2665: '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.
'할거리 > VC' 카테고리의 다른 글
CString to const char* (0) | 2015.08.11 |
---|---|
VC : Find Results not displaying Results (0) | 2015.06.24 |
OpenCV warning C4819 current code page (949) (0) | 2015.06.24 |
OpenCV 3.0 extra module C2589: '(': token not valid to the right error (0) | 2015.06.10 |
CFileDialog cannot convert const char [22] to LPCTSTR (0) | 2015.05.22 |