((*(IUnknown*)(&(*(IDirect3DResource9*)(&*vb))))).__vfptr
__vfptr CXX0030: Error: Unable to evaluate expression
WTF !? Help me please!]
dev->CreateVertexBuffer( 4, D3DUSAGE_WRITEONLY, D3DFVF_XYZ | D3DFVF_DIFFUSE, D3DPOOL_DEFAULT, &vb, NULL);
When debugging on this method is stuck. Writes this:
Unhandled exception in "0x002c1602" in "tutorial.exe": 0xC0000005: Access violation when reading "0x00000000".
IDirect3D9* d3d = NULL; IDirect3DDevice9* dev = NULL; IDirect3DVertexBuffer9* vb = NULL; d3d = Direct3DCreate9(D3D_SDK_VERSION); D3DPRESENT_PARAMETERS pp; ZeroMemory(&pp,sizeof(pp)); //тут заполнение pp d3d->CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_REF,hWnd, D3DCREATE_SOFTWARE_VERTEXPROCESSING, &pp, &dev); dev->CreateVertexBuffer( 4, D3DUSAGE_WRITEONLY, D3DFVF_XYZ | D3DFVF_DIFFUSE, D3DPOOL_DEFAULT, &vb, NULL);
((*(IUnknown*)(&(*(IDirect3DResource9*)(&*vb))))).__vfptr
And what can these ampersands mean? Of course, I understand that everything in Windows is not like people, but not so much. What can they mean? (Preferably with words) - alexlz