(old-style formal list?)

I really need help with this
I get this error when building
Hack.cpp(370): error C2447: '{' : missing function header (old-style formal list?)
You did something wrong with the function header? It is easier to help if you show us the code.
It is this
1
2
3
4
5
6
7
8
VOID Hook(VOID)
{
	DWORD cReset   = GetVTable(16);
	DWORD cPresent = GetVTable(17);

	oReset   = ( tReset   )DetourCreate(( PBYTE ) cReset,   ( PBYTE ) &HookReset,   5);
	oPresent = ( tPresent )DetourCreate(( PBYTE ) cPresent, ( PBYTE ) &HookPresent, 5);
}
Are sure this is exactly what you have? Not a semicolon after VOID Hook(VOID) or something?
I am sure. this worked before, and now it doesn't.
Just a crazy thought:

Shouldn't VOID be void?

Topic archived. No new replies allowed.