I'm looking for a way to interface with a Visual Basic application gui which connects to a database in proprietary format. I would essentially like to program algorithms in C++ which make many queries by interfacing with the text boxes and buttons and then access the results from tables and un-editable text boxes. Running on windows is not a pre-requisite, in fact it would be highly desirable for it to run in WINE. How would I go about doing this?
It is possible that what you need is a CBT hook (Computer-Based Training). This hook allows you to receive notifications whenever textboxes and buttons and other controls are created, giving you a chance to save what you need in memory for later use.
I don't have experience in using these hooks, but it should provide you with what you need. Google for "CBT hook".