470,870 Members | 1,236 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,870 developers. It's quick & easy.

error C2447 Missing function header (old-style format list? )

Hi this is my code :

HRESULT APIENTRY hkIDirect3DDevice9::DrawIndexedPrimitive(D3DPRIMIT IVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
{
return m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex, MinVertexIndex, NumVertices, startIndex, primCount);
}

{

if(m_Stride == 0)
{
DWORD dwOldZEnable = D3DZB_TRUE;
m_pD3Ddev->GetRenderState(D3DRS_ZENABLE, &dwOldZEnable);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
m_pD3Ddev->DrawIndexedPrimitive(PrimitiveType, minIndex, NumVertices, startIndex, primCount);
m_pD3Ddev->SetRenderState(D3DRS_ZENABLE, dwOldZEnable);
}

}


when i compile it i get the error message : error C2447 Missing function header (old-style format list? )

Please someone help me!?
Apr 14 '08 #1
3 4153
Savage
1,764 Expert 1GB
If you close your function here:

Expand|Select|Wrap|Line Numbers
  1. HRESULT APIENTRY hkIDirect3DDevice9::DrawIndexedPrimitive(D3DPRIMIT IVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)
  2. {
  3.  
  4.   return m_pD3Ddev->DrawIndexedPrimitive(Type,BaseVertexIndex,   
  5.   MinVertexIndex, NumVertices, startIndex, primCount);
  6.  
  7. }
then tell me in which function is a code block after it?
Apr 14 '08 #2
The code block after is in the first function, this one

HRESULT APIENTRY hkIDirect3DDevice9::DrawIndexedPrimitive(D3DPRIMIT IVETYPE Type,INT BaseVertexIndex,UINT MinVertexIndex,UINT NumVertices,UINT startIndex,UINT primCount)

Thnx for your fast response!
Apr 14 '08 #3
Banfa
9,065 Expert Mod 8TB
The code block after is in the first function, this one
Savages (slightly oblique) point is that it is not in that function because you have already closed it with your first }, in fact all the following code is not in any function which is certainly causing you errors.
Apr 14 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by stanlo | last post: by
1 post views Thread by Alberto Menchen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.