I have created an scene in 3dSMAX, for export to vc++ (opengl code) I used the 3d Exploration. When I load it in VC ( I use VC6) it looks great, but when trying to create the program, it writes some errors…
------here is the report which it writes—
--------------------Configuration: Erda01 - Win32 Debug--------------------
Command Lines
Creating temporary file “C:\WINDOWS\TEMP\RSP1153.TMP” with contents
[
/nologo /MLd /W4 /Gm /GX /ZI /D “WIN32” /D “_DEBUG” /D “_CONSOLE” /D “_MBCS” /Fp"Debug/Erda01.pch" /YX /Fo"Debug/" /Fd"Debug/" /FD /GZ /c
“C:\3dsmax3\Scenes\Erik.cpp”
]
Creating command line “cl.exe @C:\WINDOWS\TEMP\RSP1153.TMP”
Output Window
Compiling…
Erik.cpp
C:\3dsmax3\Scenes\Erik.cpp(19) : error C2466: cannot allocate an array of constant size 0
C:\3dsmax3\Scenes\Erik.cpp(19) : error C2466: cannot allocate an array of constant size 0
C:\3dsmax3\Scenes\Erik.cpp(19) : error C2087: ‘’ : missing subscript
C:\3dsmax3\Scenes\Erik.cpp(20) : error C2062: type ‘float’ unexpected
C:\3dsmax3\Scenes\Erik.cpp(222) : error C2065: ‘PFD’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(222) : error C2061: syntax error : identifier ‘MAIN_PLANE’
C:\3dsmax3\Scenes\Erik.cpp(229) : error C2501: ‘nPixelFormat’ : missing storage-class or type specifiers
C:\3dsmax3\Scenes\Erik.cpp(229) : error C2086: ‘nPixelFormat’ : redefinition
C:\3dsmax3\Scenes\Erik.cpp(229) : error C2065: ‘hdc’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(229) : error C2065: ‘pfd’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(230) : error C2501: ‘SetPixelFormat’ : missing storage-class or type specifiers
C:\3dsmax3\Scenes\Erik.cpp(230) : error C2373: ‘SetPixelFormat’ : redefinition; different type modifiers
c:\program files\microsoft visual studio\vc98\include\wingdi.h(3262) : see declaration of ‘SetPixelFormat’
C:\3dsmax3\Scenes\Erik.cpp(230) : error C2078: too many initializers
C:\3dsmax3\Scenes\Erik.cpp(230) : error C2440: ‘initializing’ : cannot convert from ‘int *’ to ‘int’
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\3dsmax3\Scenes\Erik.cpp(232) : error C2143: syntax error : missing ‘;’ before ‘if’
C:\3dsmax3\Scenes\Erik.cpp(232) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\3dsmax3\Scenes\Erik.cpp(232) : error C2447: missing function header (old-style formal list?)
C:\3dsmax3\Scenes\Erik.cpp(264) : error C2143: syntax error : missing ‘;’ before ‘}’
C:\3dsmax3\Scenes\Erik.cpp(264) : error C2143: syntax error : missing ‘;’ before ‘}’
C:\3dsmax3\Scenes\Erik.cpp(264) : error C2143: syntax error : missing ‘;’ before ‘}’
C:\3dsmax3\Scenes\Erik.cpp(278) : error C2143: syntax error : missing ‘;’ before ‘{’
C:\3dsmax3\Scenes\Erik.cpp(278) : error C2447: missing function header (old-style formal list?)
C:\3dsmax3\Scenes\Erik.cpp(314) : error C2065: ‘sizex’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(315) : error C2065: ‘sizey’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(351) : error C2070: illegal sizeof operand
C:\3dsmax3\Scenes\Erik.cpp(358) : error C2065: ‘normals’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(358) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(358) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(358) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(358) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(358) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(358) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(358) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
C:\3dsmax3\Scenes\Erik.cpp(358) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
C:\3dsmax3\Scenes\Erik.cpp(358) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
C:\3dsmax3\Scenes\Erik.cpp(359) : error C2065: ‘textures’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(359) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(359) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(359) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(359) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(359) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
C:\3dsmax3\Scenes\Erik.cpp(359) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
C:\3dsmax3\Scenes\Erik.cpp(360) : error C2065: ‘vertices’ : undeclared identifier
C:\3dsmax3\Scenes\Erik.cpp(360) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(360) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(360) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(360) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(360) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(360) : error C2109: subscript requires array or pointer type
C:\3dsmax3\Scenes\Erik.cpp(360) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
C:\3dsmax3\Scenes\Erik.cpp(360) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
C:\3dsmax3\Scenes\Erik.cpp(360) : warning C4244: ‘argument’ : conversion from ‘int’ to ‘float’, possible loss of data
Error executing cl.exe.
Results
Erik.obj - 44 error(s), 8 warning(s)