CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2002
    Posts
    5

    C++ database for all

    I am meddling with C++ database programming using ADO and OLE DB currently. It seems to be relatively simple to even use MFC and API to speed up the process.

    However, my doubts are how to write database software that are not C++ compiler specific. In another words, I want to use standard commands that are recognise by Visual and also Borland C++.

    How do i do that?do i use ODBC or what?

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    Alas there is no really good answer for this. Most of the libraries I have seen that will work with different compilers (especially on different platforms) are restricted as to the type of database they can access.

    As an example CodeBase is a library that will compile and run using (nearly) and platform or compiler. The flip side is that it will only handle X-Base file formats.

    Everything in life is a trade-off. One suggestion is to use an interface class troughout your project. Then you can instanciate different database classes depending on platform, target data format, etc.

    Hope this helps....

  3. #3
    Join Date
    May 2000
    Location
    Phoenix, AZ [USA]
    Posts
    1,347
    Check out my post in this thread as it seems to be relevent to
    your query [no pun intended]:
    http://www.codeguru.com/forum/showth...hreadid=221320

    --Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured