Review your code.

Why are you casting to an LPCSTR string here?


hDLL=LoadLibrary(reinterpret_cast<LPCSTR>("HookDll"));

What's wrong with just doing this?