Thread: C++ and Databases question

  1. #1
    RyanPincher
    Guest

    C++ and Databases question

    Im doing a project that may require some linking to a database. So i am asking,

    1. How easily this can be done, is it very advanced code?

    2. Can it be linked to MS Access databases?

    3. Should i avoid doing it in C++ and do it in VB instead?

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793

    Re: C++ and Databases question

    Originally posted by RyanPincher
    Im doing a project that may require some linking to a database. So i am asking,

    1. How easily this can be done, is it very advanced code?
    No...its just like learning any other API

    Originally posted by RyanPincher
    2. Can it be linked to MS Access databases?
    You can use a few methods to do this - ODBC, OLEDB, DAO or ADO.
    ADO is the most recent and best supported at the moment (in that it works on most langauges - C++, scripting, VB)

    Originally posted by RyanPincher
    3. Should i avoid doing it in C++ and do it in VB instead?
    Its harder in C++ as VB has easy support for Variants and BSTRs, has optional paramaters for functions as part of the language, can use events with a small bit of code and all the help and demos for this kind of stuff is usually in VB

Popular pages Recent additions subscribe to a feed