Errors

Posts 17 of 7 · Page 1 of 1
Errors
Code:
DWORD dwHSDevicePointer = FindPattern((DWORD)GetModuleHandleA("EHSvc.dll"), 0x90000, (PBYTE)"\x8B\x84\x11\x00\x00\x00\x00\x8B\x8D\xCC\xFD\xFF\xFF\x8B\x95", "xxx????xxxxxxxx");
    if(dwHSDevicePointer) {
        dwHSDevicePointer = *(DWORD*)(dwHSDevicePointer+3);
        dwHSDevicePointer += 0x10;
    }

DWORD dwTempDevicePointer = FindPattern((DWORD)GetModuleHandleA(0), (DWORD)0xFFFFFFFF, (PBYTE)"\xA1\x00\x00\x00\x00\x89\x45\xF8\x8D", "x????xxxx");
    if(dwTempDevicePointer) {
        dwDevicePointer = *(DWORD*)(dwTempDevicePointer+1);
    }
Code:
1>.\Base.cpp(34) : error C2059: syntax error : 'if'
1>.\Base.cpp(34) : error C2143: syntax error : missing ';' before '{'
1>.\Base.cpp(34) : error C2447: '{' : missing function header (old-style formal list?)
1>.\Base.cpp(40) : error C2059: syntax error : 'if'
1>.\Base.cpp(40) : error C2143: syntax error : missing ';' before '{'
1>.\Base.cpp(40) : error C2447: '{' : missing function header (old-style formal list?)
Double Click And that go to the error location push the button if i helped
I tried everything to fix it. Nothing works.
I Dno't What To Do I'm Not Pro But Hope I Helped You
Quote Originally Posted by Shimmy- View Post
Code:
DWORD dwHSDevicePointer = FindPattern((DWORD)GetModuleHandleA("EHSvc.dll"), 0x90000, (PBYTE)"\x8B\x84\x11\x00\x00\x00\x00\x8B\x8D\xCC\xFD\xFF\xFF\x8B\x95", "xxx????xxxxxxxx");
    if(dwHSDevicePointer) {
        dwHSDevicePointer = *(DWORD*)(dwHSDevicePointer+3);
        dwHSDevicePointer += 0x10;
    }

DWORD dwTempDevicePointer = FindPattern((DWORD)GetModuleHandleA(0), (DWORD)0xFFFFFFFF, (PBYTE)"\xA1\x00\x00\x00\x00\x89\x45\xF8\x8D", "x????xxxx");
    if(dwTempDevicePointer) {
        dwDevicePointer = *(DWORD*)(dwTempDevicePointer+1);
    }
Code:
1>.\Base.cpp(34) : error C2059: syntax error : 'if'
1>.\Base.cpp(34) : error C2143: syntax error : missing ';' before '{'
1>.\Base.cpp(34) : error C2447: '{' : missing function header (old-style formal list?)
1>.\Base.cpp(40) : error C2059: syntax error : 'if'
1>.\Base.cpp(40) : error C2143: syntax error : missing ';' before '{'
1>.\Base.cpp(40) : error C2447: '{' : missing function header (old-style formal list?)
Looks to me like its just being posted at the top of a header maybe? this code should be in a function as the one below. Just a little FYI hooking endscene,DIP and other D3D functions is detected by HS so unless you have another way of hooking or a better bypass this code will not be as useful as you think.

Code:
bool FindPointer(void)
{
	New_dwHSDevicePointer = FindPattern((DWORD)GetModuleHandle("ehsvc.dll"), 0x90000, (PBYTE)"\x8B\x84\x11\x00\x00\x00\x00\x8B\x8D\xCC\xFD\xFF\xFF\x8B\x95", "xxx????xxxxxxxx");
    if(New_dwHSDevicePointer) {
        New_dwHSDevicePointer = *(DWORD*)(New_dwHSDevicePointer+3);
        New_dwHSDevicePointer += 0x10;
		//add_log("deHSdevicepointer-> 0x%X",dwHSDevicePointer);
    }
	else
		return false;

DWORD dwTempDevicePointer = FindPattern((DWORD)GetModuleHandle(0), (DWORD)0xFFFFFFFF, (PBYTE)"\xA1\x00\x00\x00\x00\x89\x45\xF8\x8D", "x????xxxx");
    if(dwTempDevicePointer) {
        New_dwDevicePointer = *(DWORD*)(dwTempDevicePointer+1);
		//add_log("dwDevicePointer-> 0x%X",dwDevicePointer);
    }
	else
		return false;

	if((New_dwHSDevicePointer != NULL) && (dwTempDevicePointer != NULL))
		return true;

	return false;
}
Quote Originally Posted by Frit0 View Post
Looks to me like its just being posted at the top of a header maybe? this code should be in a function as the one below. Just a little FYI hooking endscene,DIP and other D3D functions is detected by HS so unless you have another way of hooking or a better bypass this code will not be as useful as you think.

Code:
bool FindPointer(void)
{
	New_dwHSDevicePointer = FindPattern((DWORD)GetModuleHandle("ehsvc.dll"), 0x90000, (PBYTE)"\x8B\x84\x11\x00\x00\x00\x00\x8B\x8D\xCC\xFD\xFF\xFF\x8B\x95", "xxx????xxxxxxxx");
    if(New_dwHSDevicePointer) {
        New_dwHSDevicePointer = *(DWORD*)(New_dwHSDevicePointer+3);
        New_dwHSDevicePointer += 0x10;
		//add_log("deHSdevicepointer-> 0x%X",dwHSDevicePointer);
    }
	else
		return false;

DWORD dwTempDevicePointer = FindPattern((DWORD)GetModuleHandle(0), (DWORD)0xFFFFFFFF, (PBYTE)"\xA1\x00\x00\x00\x00\x89\x45\xF8\x8D", "x????xxxx");
    if(dwTempDevicePointer) {
        New_dwDevicePointer = *(DWORD*)(dwTempDevicePointer+1);
		//add_log("dwDevicePointer-> 0x%X",dwDevicePointer);
    }
	else
		return false;

	if((New_dwHSDevicePointer != NULL) && (dwTempDevicePointer != NULL))
		return true;

	return false;
}
/Solved
@whit, agreed.

3th closed
Learn2c++....
Posts 17 of 7 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?