Tutorial #24:  Windows Hooks

My errors:
error LNK2001: unresolved external symbol _InstallHook@4
error LNK2001: unresolved external symbol _UninstallHook@0

My includes:
include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
include mousehook.inc
includelib mousehook.lib
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib

InstallHook PROTO :DWORD
UninstallHook PROTO

Any help is appreciated and I can provide more info if needed. I just Don't know what went wrong, it all looks right... =/

Posted on 2005-09-06 18:58:32 by moneytalks
Did you build the lib mousehook.lib?
Posted on 2005-09-06 21:14:24 by roticv
I do have a lib file there, but I'm assuming the problem has something to do with that..?

What might I put in the lib file before building it?
Posted on 2005-09-07 19:55:45 by moneytalks
It should be in the same folder as mousehook.inc

The problem is that the linker do not know where is InstallHook and UninstallHook found. The lib file should be the one telling the linker where is these imports.

Did you try to build using the files in tut24.zip because the tutorial was rather vague in what the hell should be inside mousehook.inc
Posted on 2005-09-07 21:54:28 by roticv
Hm.. mousehook.inc and mousehook.lib are in the same folder (actually both are in the same folder as the .asm file im attempting to build).

mousehook.lib was created when I built the dll. I copied that, along with mousehook.lib (which has the protos for install/uninstallhook) into the same folder as mousehook.asm.

I'll try to build using the files in the tut. Thanks for the help btw roticv.
Posted on 2005-09-07 22:01:28 by moneytalks