 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
almar2023 Newbie cheater
Reputation: 0
Joined: 14 Feb 2009 Posts: 19
|
Posted: Tue Aug 18, 2009 2:37 am Post subject: wallhack Detour 1.5 into Detour 2.1 |
|
|
help compiling my wallhack
my wallhack code use detours 1.5 and its detected so i make detours using detours 2.1 but i get this error when i copiled my code
| Quote: |
1>------ Rebuild All started: Project: wallhack, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'wallhack', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>wallhack.cpp
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(57) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : see declaration of 'strcpy'
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(5 : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : see declaration of 'strcat'
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(72) : warning C4996: '_vsnprintf': This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(358) : see declaration of '_vsnprintf'
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(122) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(122) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(122) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(122) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(123) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(123) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(123) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(123) : warning C4244: 'initializing' : conversion from 'float' to 'LONG', possible loss of data
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(395) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(396) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(397) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(398) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(418) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(419) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(420) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(421) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>c:\documents and settings\joey\my documents\visual studio 2008\projects\wallhack\wallhack\wallhack.cpp(422) : error C2664: 'DetourAttach' : cannot convert parameter 1 from 'PBYTE' to 'PVOID *'
1> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
1>Build log was saved at "file://c:\Documents and Settings\joey\My Documents\Visual Studio 2008\Projects\wallhack\wallhack\Debug\BuildLog"
1>wallhack - 9 error(s), 11 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ========== |
i just replaced all of DetourFunction
| Quote: |
pBeginScene = (oBeginScene)DetourFunction((PBYTE)dwBeginScene, (PBYTE)myBeginScene);
pEndScene = (oEndScene)DetourFunction((PBYTE)dwEndScene, (PBYTE)myEndScene);
pDrawIndexedPrimitive = (oDrawIndexedPrimitive)DetourFunction((PBYTE)dwDrawIndexedPrimitive, (PBYTE)myDrawIndexedPrimitive);
pSetStreamSource = (oSetStreamSource)DetourFunction((PBYTE)dwSetStreamSource, (PBYTE)mySetStreamSource);
pSetViewport=(oSetViewport)DetourFunction((PBYTE)dwSetViewport,(PBYTE) mySetViewport); |
into
| Quote: |
pBeginScene = (oBeginScene)DetourAttach((PBYTE)dwBeginScene, (PBYTE)myBeginScene);
pEndScene = (oEndScene)DetourAttach((PBYTE)dwEndScene, (PBYTE)myEndScene);
pDrawIndexedPrimitive = (oDrawIndexedPrimitive)DetourAttach((PBYTE)dwDrawIndexedPrimitive, (PBYTE)myDrawIndexedPrimitive);
pSetStreamSource = (oSetStreamSource)DetourAttach((PBYTE)dwSetStreamSource, (PBYTE)mySetStreamSource);
pSetViewport=(oSetViewport)DetourAttach((PBYTE)dwSetViewport,(PBYTE)my SetViewport); |
need help badly
_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine] |
|
| Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Aug 18, 2009 3:04 am Post subject: |
|
|
| why don't you try reading the errors. mostly about casts and a few about using unsafe functions
|
|
| Back to top |
|
 |
almar2023 Newbie cheater
Reputation: 0
Joined: 14 Feb 2009 Posts: 19
|
Posted: Tue Aug 18, 2009 6:32 pm Post subject: |
|
|
| Slugsnack wrote: | | why don't you try reading the errors. mostly about casts and a few about using unsafe functions |
that is my problem i dont know what it means
_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine] |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Tue Aug 18, 2009 10:18 pm Post subject: |
|
|
The DetourAttach function's first parameter is of type PVOID, not PBYTE, so you need to replace the PBYTE in each first parameter to PVOID. Also, learn how to program. This is obviously someone elses code.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
almar2023 Newbie cheater
Reputation: 0
Joined: 14 Feb 2009 Posts: 19
|
Posted: Thu Aug 20, 2009 10:54 pm Post subject: |
|
|
| oib111 wrote: | | The DetourAttach function's first parameter is of type PVOID, not PBYTE, so you need to replace the PBYTE in each first parameter to PVOID. Also, learn how to program. This is obviously someone elses code. |
still some errors
it stop
and can i ask favor can you compile it and i will make it an example in everytime i compile my own detours and//or can you make a clear tutorial to make it
_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine] |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Thu Aug 20, 2009 11:17 pm Post subject: |
|
|
My bad, it's type PVOID*.
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
almar2023 Newbie cheater
Reputation: 0
Joined: 14 Feb 2009 Posts: 19
|
Posted: Thu Aug 20, 2009 11:34 pm Post subject: |
|
|
| oib111 wrote: | | My bad, it's type PVOID*. | i cant do it
always error appers and stop
by the way here is my script
someone edit and compiled it please
here is the link
htt p://rapid share . co m/files/26971 8249/src.rar.h tml
_________________
Hi im almar from philippines and i'm using cheatengine in all of my games i've played
i join now here because i wanted to learn and
share if how to make the UCE [undetectable cheat engine] |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|