*
* *
*
scene.org
Log in:
login for 1 year
No account? register here

Scene.org is hosted and supported by:
Scene.org is sponsored by:
* forum - Requests

*
Topic:  Need a bit help
* Posted by Zhar Saturday 17 March 2007 - 13:10 
I have a litle problem.
Im trying to make my first demo, and Ive bin following a tutorial. But when I try to build the "demo" (only going to show black screen, but anyways) I get a whole lot of errors, 15 erros and 2 warnings.

Here is my Project tree:
#Solution 'demo1'(1 project)
|
+-#demo1
|
#Header Files (empty)
|
#Resource Files (empty)
|
#Source Files
|
+-#basswrap.cpp
|
#GLModel.cpp
|
#GLNMD.cpp
|
#GLTexture.cpp
|
#GLTimer.cpp
|
#GLWindow.cpp
|
#GLWrapperMisc.cpp
|
#main.cpp
|
#Nevermind.cpp
|
#RenderTarget.cpp


And these are the errors:
------ Build started: Project: demo1, Configuration: Debug Win32 ------
Compiling...
basswrap.cpp
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\basswrap.cpp(9) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [11]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\basswrap.cpp(14) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [28]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\basswrap.cpp(19) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [33]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
GLModel.cpp
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glmodel.cpp(106) : warning C4996: 'fopen' was declared deprecated
c:\programfiler\microsoft visual studio 8\vc\include\stdio.h(234) : see declaration of 'fopen'
Message: 'This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.'
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glmodel.cpp(109) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [27]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
GLTexture.cpp
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\gltexture.cpp(35) : error C2664: 'HRESULT ATL::CImage::Load(LPCTSTR) throw()' : cannot convert parameter 1 from 'char *' to 'LPCTSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
GLWindow.cpp
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp : warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(52) : error C2664: 'UnregisterClassW' : cannot convert parameter 1 from 'char *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(70) : error C2440: '=' : cannot convert from 'char *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(74) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [32]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(85) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [30]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(96) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [31]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(126) : error C2664: 'CreateWindowExW' : cannot convert parameter 2 from 'char *' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(157) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [38]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(163) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [27]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(170) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [21]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
c:\documents and settings\zhar\mine dokumenter\visual studio 2005\projects\demo1\demo1\glwindow.cpp(176) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char [21]' to 'LPCWSTR'
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Generating Code...
Build log was saved at "file://c:\Documents and Settings\Zhar\Mine dokumenter\Visual Studio 2005\Projects\demo1\demo1\Debug\BuildLog.htm"
demo1 - 15 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


Please help.

Thanks in Advance
~Zhar

* Posted by reed Monday 19 March 2007 - 23:21 
[00:20:42] < kallekula> hint him:
[00:20:58] < kallekula> "USE STATIC_CAST OR SET WARNING LEVEL TO 3"

* Posted by reed Monday 19 March 2007 - 23:22 
[00:21:39] < Keops_Eqx> or
[00:21:42] < Keops_Eqx> "DON'T CODE"'

* Posted by xernobyl Monday 19 March 2007 - 23:48 
Try http://www.dbfinteractive.com/

*