Error:unresolved external symbol __fltused (Hooking d3d9)

c++ / delphi package - dll injection and api hooking
Post Reply
mayurgadhave
Posts: 5
Joined: Tue Sep 19, 2006 12:19 pm
Location: Pune
Contact:

Error:unresolved external symbol __fltused (Hooking d3d9)

Post by mayurgadhave »

I am able to Hook Present() Function using HookDirect3D.dll
but i dont get the device pointer
using which i want to draw rectangle using REC in the game.

IDirect3DDevice9 *m_pIDirect3DDevice9;

RESULT WINAPI Present9Callback(PVOID self, CONST RECT* pSourceRect,CONST RECT* pDestRect,HWND hDestWindowOverride,CONST RGNDATA* pDirtyRegion)
{
D3DRECT rec = {100,1,150,50};
m_pIDirect3DDevice9 = reinterpret_cast<IDirect3DDevice9 *> (device) ;
m_pIDirect3DDevice9 ->Clear(1, &rec, D3DCLEAR_TARGET, D3DCOLOR_ARGB(255,255,255,0),0 ,0);
MessageBox(NULL, "presenting", "dude!", MB_OK);
return Present9Next(self, pSourceRect,pDestRect,hDestWindowOverride,pDirtyRegion);
}


Im getting the Error
HookDirect3D error LNK2001: unresolved external symbol __fltused



Waiting For repply....
Post Reply