External interface to a visual basic 6 gui app

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?

Many thanks in advance,

Nick
Write a library in C++ and link it from VB
Sorry I should have added I have no access to the VB source code - hence the need to operate it in such an inefficient way.
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".
Topic archived. No new replies allowed.