I am using Visual C++ 2010 to compile the code given in this link:
I used precompiled Win32 Project and I am still getting some errors:Code:http://www.cprogramming.com/tutorial/opengl_first_windows_app.html
Please, help me.Code:1>c:\users\anoop\documents\visual studio 2010\projects\ui\ui\ui.cpp(33): error C2664: 'TextOutW' : cannot convert parameter 4 from 'char [14]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>c:\users\anoop\documents\visual studio 2010\projects\ui\ui\ui.cpp(63): error C2440: '=' : cannot convert from 'const char [8]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 1>c:\users\anoop\documents\visual studio 2010\projects\ui\ui\ui.cpp(82): error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'const char [8]' to 'LPCWSTR' 1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast



1Likes
LinkBack URL
About LinkBacks


