Advertisement

REALLY weird errors. Need help.

Started by July 18, 2004 03:34 PM
3 comments, last by RipTorn 20 years, 4 months ago
s:\progging\ppdx9\ppmodels.cpp(16) : error C2143: syntax error : missing ';' before 'PCH creation point' What the HECK does THAT mean?
Js
Not very easy to give a qualified guess based on so little info ;) Post some code!
________________________________pro.gram.mer - an organism that turns caffeine into code
Advertisement
//////////////////////////////////////////////////////////////////////////////////////////////////
/************************************************************************************************/
/* */
/* Include */
/* */
/************************************************************************************************/
//////////////////////////////////////////////////////////////////////////////////////////////////
#include "PPMODELS.h"
//////////////////////////////////////////////////////////////////////////////////////////////////
/************************************************************************************************/
/* */
/* MS3D Model loader */
/* */
/************************************************************************************************/
//////////////////////////////////////////////////////////////////////////////////////////////////
CModel_MS3D::Load(PPGRAPHICS *pp,LPSTR filename)
{
OFSTRUCT of;
HFILE hfile;
CModel_MS3D_Header header;
int loop;


hfile = OpenFile(filename,&of,OF_READ);
_lread(hfile,&header.id,10);
_lread(hfile,&header.version,sizeof(int));
if(strncmp(header.id, "CModel_MS3D000000", 10)!=0)
return(0);

if(header.version!=3 && header.version!=4)
return(0);

_lread(hfile,&numVertices, sizeof(unsigned short));
vertices= new CModel_MS3D_Vertex [numVertices];
for(loop=0; loop<numVertices; loop++)
{
_lread(hfile,&vertices[loop].flags, sizeof(BYTE));
_lread(hfile,vertices[loop].vertex, sizeof(float)*3);
_lread(hfile,&vertices[loop].boneID, sizeof(char));
_lread(hfile,&vertices[loop].refCount, sizeof(BYTE));
}
Js
Google is your friend.

Enigma
"PCH creation point" means the precompiled header creation point. The precompiled header in VS is usually stdafx.h. So the first thing you might want to do is add #include "stdafx.h" to the top of the source file, (or whatever the name of the PCH your using is)

if your not using a PCH, then maybe your project is setup to use one, so go into the project properties and find out what it's PCH settings are, and see if they are correct.

This topic is closed to new replies.

Advertisement