• 15
• 15
• 11
• 9
• 10

# CreateVertexBuffer Arguments

This topic is 4326 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hey everyone, this seems like a basic problem and it's probably right underneath my nose but I can seem the problem in this statement.

if(FAILED(pDevice->CreateVertexBuffer(18 * sizeof(CUSTOMVERTEX),
0, D3DFVF_CUSTOMVERTEX,
D3DPOOL_DEFAULT, &pVertBuffer)))
{
return false;
}

CUSTOMVERTEX is a structure I'm using and creating cvvVertices cube. The error I get is: error C2660: 'IDirect3DDevice8::CreateVertexBuffer' : function does not take 3 arguments It's possible I missed a line of code somewhere above because I was following a tutorial just by looking at it (not copying and pasting, the true n00b way). Also, pVertBuffer is declared (in case you thought that was the problem).

##### Share on other sites
if(FAILED(pDevice->CreateVertexBuffer(18 * sizeof(CUSTOMVERTEX),
0, D3DFVF_CUSTOMVERTEX,
D3DPOOL_DEFAULT, &pVertBuffer, NULL)))
{
return false;
}

##### Share on other sites
I've tried that and it still gives me that same error abour 3 arguments.