here is my code
Code:
BOOL D3dDevice::Picking(HWND hWnd, LPDIRECT3DDEVICE9 d3ddev, CXFileEntity *entity, int z) { D3DXVECTOR3 v; D3DXMATRIX matProj;
BOOL D3dDevice::Picking(HWND hWnd, LPDIRECT3DDEVICE9 d3ddev, CXFileEntity *entity, int z) { D3DXVECTOR3 v; D3DXMATRIX matProj;
bufferMem = VirtualAllocEx(processHandle, 0, size, MEM_RESERVE Or MEM_COMMIT, PAGE_READWRITE) If bufferMem = 0 Then Error Err, "VirtualAllocEx API Failed" End If