0

In this project of mine which is for IMGUI using minhook i keep getting an unresolved external symbol for void _cdecl Hooking::KillHook(void) within initalize.cpp

and idk if im dumb or something but i can't find it out. so iv finnally decided to ask online for this stuff.

heres code from hook.h

void KillHook() noexcept;

hook.cpp

void Hooking::KillHook() noexcept
{
    MH_DisableHook(MH_ALL_HOOKS);
    MH_RemoveHook(MH_ALL_HOOKS);
    MH_Uninitialize();
}

and here is where i use it in initalize.cpp note this is within a void startup() and it starts with a try and catch in catch it goes to QUITMENU

// are we dead?
QUITMENU:

    // kill both
    Hooking::KillHook();
    Menu::KillMenu();

    // this allows threading to no die
    FreeLibraryAndExitThread(Inizst, 0);

i hope someone knows why this is happening it's been backing me from finishing this for 2 days now

Alan Birtles
  • 32,622
  • 4
  • 31
  • 60
Lesshy
  • 1

0 Answers0