Click here to Skip to main content
15,564,534 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Here Delphi: How to create a system wide windows hook[^] is a nice article for Keyboard hook in Delphi for 32 bit Windows

Since Borland has stopped Delphi, I wish to create a Keyboard Hook application in C++ (preferably using MS Visual Studio) for 64 Bit Windows OS

Can anybody please convert the above Delphi article in VC++ ?

I guess, it requires two projects, one User Interface .exe for running the Form based Application and other .dll for actually hooking the Keyboard globaly

What I have tried:

I tried searching various online examples, but they are still 32 bit only. Further, it does not use the Memory map file concept, like the above Delphi Article.
Posted
Updated 13-Nov-21 2:34am
Comments
Richard MacCutchan 8-Jul-16 2:33am    
Sorry, this site does not provide code writing or converting services. Google will find you plenty of articles on Windows hooking.

Actually Delphi is alive: RAD Studio | Windows, Mac, Android and iOS App Development[^].
Anyway you could convert yourself the project (and write an article about): once you grasp the quirks of the Pascalish syntax it shouldn't be a daunting task.
 
Share this answer
 
I'd advise against Visual Studio in this case: Delphi uses very specific system libraries provided by Embarcadero (formerly Borland), which only the C++ IDEs provided by the same company offers: C++ Builder or RAD STudio for C++ both should give you access to these libraries and functions, and that should greatly simplify the task of converting Delphi code to C++.

Be warned: converting code from C++ Builder to something you can use in Visual Studio may be more challenging than converting it from Delphi to C++ Builder!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900