Quantcast

Jump to content

» «
Photo

Tutorial for spookie's SCM hook (C++)

37 replies to this topic
trjack
  • trjack

    Player Hater

  • Members
  • Joined: 11 Mar 2009

#31

Posted 14 March 2009 - 12:55 PM

Can i do this in GTA3?

grovespaz
  • grovespaz

    Group: Morons

  • Members
  • Joined: 22 Feb 2004

#32

Posted 05 February 2010 - 11:22 AM Edited by grovespaz, 05 February 2010 - 05:00 PM.

EDIT: Sorry for the bump! I seem to have a bad habit bumping this topic once it has died sad.gif

QUOTE (xanser @ Sep 19 2007, 13:57)
I download MS VC++ 6.0 and DirectX 8.1 SDK
What is wrong?  cry.gif
CODE
error C2259: 'IDirect3DDevice8Hook' : cannot instantiate abstract class due to following members: idirect3ddevice8hook.h(13) : see declaration of 'IDirect3DDevice8Hook'
warning C4259: 'void __stdcall IDirect3DDevice8::SetCursorPosition(unsigned int,unsigned int,unsigned long)' : pure virtual function was not defined \include\d3d8.h(263) : see declaration of 'SetCursorPosition'

...it's seems the suggestion was in the begining of this topic, sorry...

Oh, I do remember how to fix this biggrin.gif

Strange thing is, some people need to fix this, for other people it works just fine

Open your speedo source, the file 'IDirect3DDeviceHook.cpp'
Look for the line with 'SetCursorProperties' in it
Replace it with this:
CODE
HRESULT __stdcall IDirect3DDevice8Hook::SetCursorProperties(UINT XHotSpot, UINT YHotSpot, IDirect3DSurface8* pCursorBitmap)


(Note, Only thing changed is int to Uint)

Then, in 'IDirect3DDeviceHook.h'
Again, look for the line which contains SetCursorProperties, and replace with:"
CODE
STDMETHOD(SetCursorProperties)(THIS_ UINT XHotSpot,UINT YHotSpot,IDirect3DSurface8* pCursorBitmap);


If I recall all information correctly, that should fix it wink.gif

VintProg
  • VintProg

    Square Civilian

  • Members
  • Joined: 26 Jun 2010

#33

Posted 22 June 2011 - 04:26 AM

http://spookie.powerpill.co.uk/
http://www.pawfectfi.../speedo_src.zip
link broken

VintProg
  • VintProg

    Square Civilian

  • Members
  • Joined: 26 Jun 2010

#34

Posted 22 June 2011 - 08:41 AM

IDirect3DDevice8Hook D3DDevice8Hook; - error!
What should I do?

VintProg
  • VintProg

    Square Civilian

  • Members
  • Joined: 26 Jun 2010

#35

Posted 22 June 2011 - 11:47 AM

Ebano wrod!!! che molchiti!

ceedj
  • ceedj

    PEDS Creator

  • Feroci
  • Joined: 21 May 2005
  • United-States

#36

Posted 22 June 2011 - 04:32 PM

http://www.pawfectme.../speedo_src.zip

Reposted. Found the folder, but not the zip file, so I made a new one. Pretty sure by the dates that it is original.

VintProg
  • VintProg

    Square Civilian

  • Members
  • Joined: 26 Jun 2010

#37

Posted 23 June 2011 - 05:06 AM

Thank you very much!
But by the beginning of the project does not compile? When I removed the void setcursor, it started to compile, but when I run GTA-VC, it was a mistake! I compiled in visual c + + 2010 ultimat, What's wrong?

HM128
  • HM128

    alovelyday

  • Feroci
  • Joined: 09 Jul 2006
  • None
  • Best Map 2013 "ViceCityStories PC Edition"

#38

Posted 04 January 2014 - 03:09 PM Edited by HackMan128, 05 January 2014 - 07:04 PM.

First of all, where i can download dx 8.0 SDK? I don't think Directx 8.1 would work if I'm still getting some errors when launching game.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users