Solved __thiscall problem - access violation

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat


Aug 18, 2017

I'm writting simple bot for Tibia (OTS), I'm injecting the dll to the client process and then calling some functions. The calling convention is __thiscall I'm pretty sure.

I have something like this:

	class ProtocolGameSend
		void moveNorth()
			void(__thiscall *moveNorth)(void*) = (void(__thiscall*)(void*))((intptr_t)GetModuleHandle(NULL) + 0x0DB940);

intptr_t objectAddress = (intptr_t)GetModuleHandle(NULL) + 0x545AA0;
ProtocolGameSend* protocolPtr = (ProtocolGameSend*)objectAddress;

Addresses are 100% good because the same addresses I'm currently using in codecaves and these addresses are working, but from dll I'm getting Access Violation. Can some one help me? I'm pretty new in internal cheats.

Greetings :)
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods