I have this code:
HRESULT __stdcall IDirect3DDevice9Hook::BeginScene()
{
if(dwD3D9DllBaseAddr && dwD3D9DllSize)
{
dwD3DDev = (DWORD)pD3DDevice;
_asm mov eax, dwD3DDev
_asm mov ebx, [eax]
_asm mov eax, [ebx+164]
_asm mov dwTestPtr, eax
if(dwTestPtr < dwD3D9DllBaseAddr || dwTestPtr > (dwD3D9DllBaseAddr + dwD3D9DllSize)) {
FORCE_EXIT( 10 );
}
}
return pD3DDevice->BeginScene();
}
at the 5th line it says "this declaration has no storage class or type specifier" it says this at FORCE_EXIT(10); too. On the second if statement (if(dwTestPtr....) it says "expected a declaration". What is wrong in them?