I have to 2 separate codes that I need to combine using Visual Studios 2013 on Windows 7. The first one is a console application using OpenCV, Qt, and Intraface. The second is a Windows application that came from Microsoft´s Magnification API. They both work separately on their own, however I´m having trouble putting them together. I want to use Microsoft´s code to magnify sections of the screen, but instead of getting an input from the location of the mouse cursor on the screen, I want to receive the input from the 1st code.
I was wondering how I can go about calling the first code in order to retrieve this position. Would I just have to add all the header and source files from the first code into the Magnification project? And then call the necessary function in the Magnification project´s main loop, so that it can update the position accordingly?
I´m new to C++, but I would really like to accomplish this. Any guidance at how I should approach this would be very much appreciated. Thank You!