wc.hIcon = LoadIcon(hInstance, TEXT("C:/Documents and Settings/Richard/test.bmp"));
wc.hIcon = HICON(LoadImage(hInstance, TEXT("C:/Documents and Settings/Richard/test.bmp"), IMAGE_ICON, 0, 0, LR_DEFAULTSIZE));
cannot convert parameter 2 from 'const char [43]' to 'LPCWSTR' |
|
|
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(MyIcon));
c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2143: syntax error : missing ')' before ';' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2143: syntax error : missing ')' before ';' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2143: syntax error : missing ')' before ';' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2143: syntax error : missing ')' before ';' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2143: syntax error : missing ')' before ';' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2059: syntax error : ')' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2059: syntax error : ')' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2059: syntax error : ')' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2059: syntax error : ')' c:\documents and settings\richard\my documents\visual studio 2008\projects\lesson 1\lesson 1\main.cpp(33) : error C2059: syntax error : ')' |
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(MyIcon);)