Menu

Data base programming with Dev-C++

2006-02-22
2012-09-26
  • Nobody/Anonymous

    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!

     
    • Amanda Wee

      Amanda Wee - 2006-02-22

      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/

       
    • Edmund Tudor

      Edmund Tudor - 2006-02-22

      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

       
    • Nobody/Anonymous

      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/

       
      • Nobody/Anonymous

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.