Click here to Skip to main content
16,006,535 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to create a dialog form with mysql as background..
Posted
Comments
[no name] 18-May-13 7:34am    
This is not a question or a description of any kind of a problem. http://www.codeproject.com/Articles/64628/Code-Project-Quick-Answers-FAQ
arun.jalabathi 22-May-13 3:08am    
If you don't know answer means, don't post your waste comments here, its not a dustbin for your empty comments..

1 solution

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
 
Share this answer
 
Comments
arun.jalabathi 22-May-13 3:10am    
Thanks for your tips, its helpful to me @Kucera jan

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900