I am coding in straight C, not C++, so I am using the virtual table (lpVtbl->yadayadayada) to access the member functions. However, when I try to access the member functions of the D3DX context, I get a compile time error saying that the call is returning a pointer to a vertexbuffer!?!?
m_pD3DDev = m_pD3DX->lpVtbl->GetD3DDevice(m_pD3DX);
This line gives me the following compile warning:
warning C4133: 'function' : incompatible types - from 'struct ID3DXContext *' to 'struct IDirect3DVertexBuffer7 *'
Anybody care to illuminate me?