I´m learning to program in c++ using Dev-C++, especifically data base programs, but some friends tell me that to create this type of programs for Windows i need to use something called Microsoft Foundation Classes(MFC) and that Dev-C++ does not support MFC, so i can't use this IDE to create DB progs for Win... There is any way to work with data bases with Dev-C++ and the Windows API directly ?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've used MySQL, you will need to download, install and set up the MySQL server, and get the devpak for it to use it with Dev-C++. I would also suggest getting a good MySQL book that shows examples of connecting to it with C/C++.
You can start out learning it with console programs, and then move on to writing a Windows app. The main difference is just the interface, how you enter and display the data. You'll have to learn the Windows API, or use something like wxWidgets to make your GUI.
It's a bit of work, but if you want to do SQL type databases you this would be a pretty good way to learn.
There's a screenshot of a database I was working on here:
That was done with Dev, MySQL, the Windows API for the basic window, toolbar and treeview, and my string grid project to display the data. You could also use something like a listview or richedit control for that.
black_adder
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can use the Windows API in Dev-Cpp. You can use a database if you have the database documentation telling the function calls to make. But, if you use Visual C and the MS database, you can use wizards that will generate most of the code for you. This will be much faster than using the API. I can't say for sure if the generated code uses MFC. If it does it will have to be compiled with Visual C.
If you want to use Dev-Cpp and the API there an open source database called MySql. It probably has some sample code that will get you started.
I´m learning to program in c++ using Dev-C++, especifically data base programs, but some friends tell me that to create this type of programs for Windows i need to use something called Microsoft Foundation Classes(MFC) and that Dev-C++ does not support MFC, so i can't use this IDE to create DB progs for Win... There is any way to work with data bases with Dev-C++ and the Windows API directly ?
Thanks!
You could also take a look at two other open source database engines/APIs...
SQLite
http://www.sqlite.org
Postgresql with libpqxx
http://thaiopensource.org/development/libpqxx/
I've used MySQL, you will need to download, install and set up the MySQL server, and get the devpak for it to use it with Dev-C++. I would also suggest getting a good MySQL book that shows examples of connecting to it with C/C++.
You can start out learning it with console programs, and then move on to writing a Windows app. The main difference is just the interface, how you enter and display the data. You'll have to learn the Windows API, or use something like wxWidgets to make your GUI.
It's a bit of work, but if you want to do SQL type databases you this would be a pretty good way to learn.
There's a screenshot of a database I was working on here:
http://pwrgrid.sourceforge.net/
That was done with Dev, MySQL, the Windows API for the basic window, toolbar and treeview, and my string grid project to display the data. You could also use something like a listview or richedit control for that.
black_adder
You can use the Windows API in Dev-Cpp. You can use a database if you have the database documentation telling the function calls to make. But, if you use Visual C and the MS database, you can use wizards that will generate most of the code for you. This will be much faster than using the API. I can't say for sure if the generated code uses MFC. If it does it will have to be compiled with Visual C.
If you want to use Dev-Cpp and the API there an open source database called MySql. It probably has some sample code that will get you started.
http://www.mysql.com/
By database I assume you mean RDBMS:
http://en.wikipedia.org/wiki/List_of_relational_database_management_systems
IMO, this is a good place to go look.
Just my two cents
Benjamin Lau
P/s Wikipedia is good for this kind of things, assuming the lists exist.