14.07.2015, 15:23. Просмотров 770. Ответов 3
Здравствуйте! Я пишу программу на С++ Win APi. Если поставить Solutions Configuration->Debug, программа работает нормально, то если поменять на Solutions Configuration->Release, появляется 25 ошибок такого типа
error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [17]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\Settings.cpp(17) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [17]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\Settings.cpp(52) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [17]' to 'LPCWSTR'
1>
1>.\main.cpp(134) : error C2664: 'CreateFileW' : cannot convert parameter 1 from 'const char [13]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\main.cpp(139) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [17]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\main.cpp(148) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [17]' to 'LPCWSTR'
1>
1>.\m
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>.\main.cpp(603) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [29]' to 'LPCWSTR'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Очень прошу совета, из-за чего это получилось и как это исправить
0
|