Hi,
the sollution shall be quite atraight-forward. I am not aware of the amount of your knowledge, so I dount know which part (
MFC or
using MySQL in C++ or
...) is the biggest trouble for you. So I will describe the sollution briefly.
First you need to create new MFC application. That can be done by a Visual Studio MFC Wizard. Or you can do it manualy (which can be a pretty hack of work).
When you have the application with a main window (or Dialog), you need to add a component for displaying the results of SQL queries. This component can be e.g. a
ListView control or some contrl taht you manually develop by deriving from other MFC classes.
WHen done, you need to connect to MySQL database. This can be done by a MySQL connector for C++, which is a SDK for accessing MySQL databases. You can find the install and also documentation
here.
And finally, you just send a SQL query to the database, you receive a recordset as a result and receive rows of the resultset as items of the component described above.
Hope this helps.
Best regards,
J.K