evgeny_rybakov
15-04-2007, 20:21
Создал GUI проект. Хочу вызвать функцию MessageBox(..........)
MessageBox::Show("You must enter a name.",
"Name Entry Error",
MessageBoxButtons::OK,
MessageBoxIcon::Exclamation);
(дернул из MSDN)
Но во время сборки пишет:
Compiling...
giu.cpp
error C2653: 'MessageBoxW' : is not a class or namespace name
error C2653: 'MessageBoxButtons' : is not a class or namespace name
error C2065: 'OK' : undeclared identifier
error C2653: 'MessageBoxIcon' : is not a class or namespace name
error C2065: 'Exclamation' : undeclared identifier
error C3861: 'Show': identifier not found
Такое ощущение не подцепил к проекту *.h или *.lib файл
С борландом таких проблем не возникало... Может кто сталкивался с подобной проблемой...
MessageBox::Show("You must enter a name.",
"Name Entry Error",
MessageBoxButtons::OK,
MessageBoxIcon::Exclamation);
(дернул из MSDN)
Но во время сборки пишет:
Compiling...
giu.cpp
error C2653: 'MessageBoxW' : is not a class or namespace name
error C2653: 'MessageBoxButtons' : is not a class or namespace name
error C2065: 'OK' : undeclared identifier
error C2653: 'MessageBoxIcon' : is not a class or namespace name
error C2065: 'Exclamation' : undeclared identifier
error C3861: 'Show': identifier not found
Такое ощущение не подцепил к проекту *.h или *.lib файл
С борландом таких проблем не возникало... Может кто сталкивался с подобной проблемой...