Ok, although I have experience in other languages, I am fairly unfamiliar with c++, and am currently writing some software to collect data for a project of mine.
What I have is a window for the user to interact with, and a .cpp file to communicate with external hardware. I have already worked out all the code for the form portion and hardware portions, but I need to have a way for them to be combined somehow. The form is a .h file, and the hardware file is a .cpp
I want to modify the hardware file, so that it will communicate with the form.
The problem is that I am not entirely sure how I should go about this (I want to turn an event from the form, such as inputs into text boxes, to a data value for the .cpp file to use.)
I would also like for the .cpp file to be able to send data to the form.
(the form has a graphing function I wrote)
What is the best way for a .cpp to interact with a form in c++?