Solved

KTKbdHk.dll

Posted on 2002-04-11
5
333 Views
Last Modified: 2010-05-18
i am using KTKbdHk.dll to hook my keyboard, this works fine on most machines but on some when i call any of the functions within that dll it doesnt return from the call for about an hour then complians that it couldnt find the dll when it is clearly in the application path.
Any ideas what could cause this?
0
Comment
Question by:crazyman
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:soferstam
ID: 6934781
I assume this is COM dll
Try opening .vbp file in notepad and see where it is going to.Sometimes it has wrong references.
0
 
LVL 13

Author Comment

by:crazyman
ID: 6936267
nope it is not a COM dll, it is a standard dll, i reference it using.
Public Declare Function HookKeyboard Lib "KTKbdHk.dll" (ByVal hWnd As Long, ByVal MsgID As Long) As Long
Public Declare Function UnhookKeyboard Lib "KTKbdHk.dll" () As Long
Public Declare Function Hooked Lib "KTKbdHk.dll" () As Long
0
 
LVL 1

Expert Comment

by:soferstam
ID: 6937365
Hi,
I don't know the answer,but this guy using a different way to do something simular:
http://www.hackinthebox.org/threadview.php?&topicid=19&forumid=2
0
 
LVL 1

Accepted Solution

by:
ProgramIT earned 200 total points
ID: 6939838
The KTKbdHK dll works well in 95/98 but can cause serious problems in ME, 2000, and XP if not careful.  There is an update available for xp etc. but then it doesn't run in 98.  
I used it for awhile but had to include both versions and use OS checking to determine one to use.


0
 
LVL 13

Author Comment

by:crazyman
ID: 6941449
well this dll has caused me nothing but grief, ive found another systemhook dll written in C++ from pscode, cheers for your input guys
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question