Hi,

I have the following declarations in my Module file:


Declare Sub InstallMyHook Lib "HookKB" (byval hWnd as Long)
Declare Sub UnInstallMyHook Lib "HookKB" (byval hWnd as Long)



HookKB.dll is a little dll written by me in MS VC++, and is installed in the Windows\System directory.

On my own computer, everything runs smoothly.

But when my VB program is run on another computer, I get a "File not found HookKB" error, although the HookKB.dll is installed properly into the Windows\System directory.

I even tried changing Lib "HookKB" to Lib "HookKB.dll". But it still doesn't work.

Why does this happen? Why does it work on my computer and not on another?
How do I resolve this? Help help.

Rgds,
Ming_Wah