How to setup touch input in c++?

I am really confused regarding the right workflow to implement to handle touch input in c++?
There seems to be some information out there regarding this out there but it doesn’t seems to be working for me .

I would really appreciate if someone can explain me in a clean manner about how I should go about implementing touch input.

Thanks.

322103-cap3.png