Okay, so I declared the pointer extern in MS3D.H and wrote it in the .cpp file the way its spose to be, I add the header file MS3D.H to my main cpp file, the only problem is, when i call the pointer it does this.
I call pModel like this
Code:
pModel = new MS3DModel();
if ( pModel->LoadModelData( "data/model.ms3d" ) == false )
{
MessageBox( NULL, "Couldn't load the model data/model.ms3d", "Error", MB_OK | MB_ICONERROR );
return 0; // If Model Didn't Load, Quit
}
Code:
--------------------Configuration: NeHeGL - Win32 Debug--------------------
Compiling...
Example.cpp
C:\Documents and Settings\colemanjon\Desktop\RenderEngine\Example.cpp(27) : error C2501: 'pModel' : missing storage-class or type specifiers
C:\Documents and Settings\colemanjon\Desktop\RenderEngine\Example.cpp(27) : error C2040: 'pModel' : 'int' differs in levels of indirection from 'class MS3DModel *'
C:\Documents and Settings\colemanjon\Desktop\RenderEngine\Example.cpp(27) : error C2440: 'initializing' : cannot convert from 'class MS3DModel *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\Documents and Settings\colemanjon\Desktop\RenderEngine\Example.cpp(28) : error C2143: syntax error : missing ';' before 'if'
C:\Documents and Settings\colemanjon\Desktop\RenderEngine\Example.cpp(29) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\colemanjon\Desktop\RenderEngine\Example.cpp(29) : error C2447: missing function header (old-style formal list?)
Error executing cl.exe.
Creating browse info file...
NeHeGL.exe - 6 error(s), 0 warning(s)
I'll attach necessary files..