can anyone solve this error

1>------ Build started: Project: face_detection, Configuration: Debug Win32 ------
1>Compiling...
1>face_detection.cpp
1>c:\documents and settings\student\desktop\2nd week\face_detection\face_detection\face_detection.cpp(63) : error C2664: 'strncmp' : cannot convert parameter 1 from '_TCHAR *' to 'const char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\student\desktop\2nd week\face_detection\face_detection\face_detection.cpp(65) : error C2664: 'strncmp' : cannot convert parameter 1 from '_TCHAR *' to 'const char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\student\desktop\2nd week\face_detection\face_detection\face_detection.cpp(73) : error C2664: 'strncmp' : cannot convert parameter 1 from '_TCHAR *' to 'const char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\student\desktop\2nd week\face_detection\face_detection\face_detection.cpp(75) : error C2664: 'sscanf' : cannot convert parameter 1 from '_TCHAR *' to 'const char *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>Build log was saved at "file://c:\Documents and Settings\student\Desktop\2nd Week\face_detection\face_detection\Debug\BuildLog.htm"
1>face_detection - 4 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
You're working in Unicode. If you don't need it switch it off. If you do need it, use wide string functions.

http://www.cplusplus.com/forum/windows/21167/#msg111693
Topic archived. No new replies allowed.