I usually looked for this error. But in VS C ++ Express, this error occurs almost every error you make. Any ways to get this error below
error C2146: syntax error : missing ';' before identifier 'vertices'
every time i add the following code at the top of the document
// Create vertex buffer SimpleVertex vertices[] = { D3DXVECTOR3( 0.0f, 0.5f, 0.5f ), D3DXVECTOR3( 0.5f, -0.5f, 0.5f ), D3DXVECTOR3( -0.5f, -0.5f, 0.5f ), };
below is the whole code. I canβt understand what happened. thanks
[EDIT]
new mistake
1>c:\users\numerical25\desktop\intro todirectx\msdntutorials\tutorial0\tutorial\tutorial\main.cpp(14) : error C2146: syntax error : missing ';' before identifier 'Pos'
source share