SolvedDetours

Posts 1–7 of 7 · Page 1 of 1
Detours
Estou tentando usar a Detours que o @Black Diamond postou mais esta dando erro no HooK.
Essa: http://www.mpgh.net/forum/397-combat...mbined-v2.html

Code:
1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
1>  DirectX.cpp
1>DirectX.cpp(109): error C3861: 'DetourCreate': identifier not found
1>DirectX.cpp(110): error C3861: 'DetourCreate': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Oque devo fazer pra arrumar isso?

Minha Hook esta Assim:

Code:
 void cDirectx::Hook(void)
{
	DWORD Reset	   = Base.GetPointer(16);
	DWORD Present  = Base.GetPointer(17);

    pReset   = (oReset)   DetourCreate(( BYTE* )Reset,   ( BYTE* )gellReset );
    pPresent = (oPresent) DetourCreate(( BYTE* )Present, ( BYTE* )gellPresent );
}

Code:
void cDirectx::Hook(void)
{
   DWORD Reset	   = Base.GetPointer(16);
   DWORD Present  = Base.GetPointer(17);

    pReset   = (oReset)   DetourFunc(( BYTE* )Reset,   ( BYTE* )gellReset );
    pPresent = (oPresent) DetourFunc(( BYTE* )Present, ( BYTE* )gellPresent );
}
Não funcionou porque você não está usando a Combined Base V2 postada pelo whit.
E sim alguma que foi postada aqui na seção BR.
@Alessandro10 ja tinha feito isso antes mais deu erro ainda.
Code:
1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
1>  DirectX.cpp
1>DirectX.cpp(109): error C2660: 'DetourFunc' : function does not take 2 arguments
1>DirectX.cpp(110): error C2660: 'DetourFunc' : function does not take 2 arguments
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
@Templar estou usando a postada na seção gringa a Combined Basee v2.
Quote Originally Posted by Fakesk View Post
@Alessandro10 ja tinha feito isso antes mais deu erro ainda.
Code:
1>------ Build started: Project: CaBase, Configuration: Release Win32 ------
1>  DirectX.cpp
1>DirectX.cpp(109): error C2660: 'DetourFunc' : function does not take 2 arguments
1>DirectX.cpp(110): error C2660: 'DetourFunc' : function does not take 2 arguments
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
@Templar estou usando a postada na seção gringa a Combined Basee v2.
u.u
Então analisa os argumentos da função e veja o que está errado '-'
Code:
void cDirectx::Hook(void)
{
   DWORD Reset	   = Base.GetPointer(16);
   DWORD Present  = Base.GetPointer(17);

    pReset   = (oReset)   DetourFunc(( BYTE* )Reset,   ( BYTE* )gellReset, 5 );
    pPresent = (oPresent) DetourFunc(( BYTE* )Present, ( BYTE* )gellPresent, 5 );
}
Quote Originally Posted by ChaosMagician View Post
Code:
void cDirectx::Hook(void)
{
   DWORD Reset	   = Base.GetPointer(16);
   DWORD Present  = Base.GetPointer(17);

    pReset   = (oReset)   DetourFunc(( BYTE* )Reset,   ( BYTE* )gellReset, 5 );
    pPresent = (oPresent) DetourFunc(( BYTE* )Present, ( BYTE* )gellPresent, 5 );
}

VLW Manu funcionou *_*.

Mesmo com outra detours ainda esta dando dc,que merda.
Posts 1–7 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?