Thread: C++ 6 incompatible with Oracle 10g?

  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    3

    C++ 6 incompatible with Oracle 10g?

    My friend is having trouble with a C++ assignment, so I thought I would try to help her out. The version of Oracle installed is the latest, 10g.

    To test the fact, I created a quick MFC application and linked it to the database. Upon running the app, I am prompted for the password, so I know it's working that far. Once inside the program though, there's no functionality with the DB. The |< < > >| buttons are all dimmed out and unuseable... yet it DID connect to it fine.

    I am just wondering if Oracle 10g is imcompatible, or if there is something else we could test to try to get it to work.

    Thanks for any help!

  2. #2
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    You might need to update your libraries.

  3. #3
    Registered User
    Join Date
    Feb 2006
    Posts
    3
    How would I go about doing that? I tried creating a brand new MFC application with 2003 with that database but get errors after creating so I can't even test there. Will try with 2005 now, but this is frustrating, hehe.

  4. #4
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    If you are using ODBC there should not be a conflict because the MFC does not know that you are accessing Oracle. If you haven't done so already you should read these tutorials The tutorials use M$ Access but should work with Oracle too as long as you have the drivers installed.
    Last edited by Ancient Dragon; 02-18-2006 at 11:02 PM.

  5. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    3
    Thanks AD... I followed those tutorials to no avail

    This makes no sense to me.. I know the DB is working because I can connect to it with the Oracle dev tools.

  6. #6
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    The |< < > >| buttons are all dimmed out and unuseable...
    Not sure what you are referring to here. Create a new project. Don't use any of that wizard/GUI crap. Create an instance of the CDatabase class. Call the Open member function. It should be working fine. If it doesn't, you probably forgot to configure the ODBC datasource or your database is not listed in the tnsnames.ora file ( though this seems unlikely as you can connect with SQL+ ).

    There is no C++ 6 by the way. You probably mean Visual C++ 6.
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  7. #7
    chococoder
    Join Date
    Nov 2004
    Posts
    515
    Quote Originally Posted by nvoigt
    There is no C++ 6 by the way. You probably mean Visual C++ 6.
    which isn't compatible with anything except itself

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Incompatible Pointer Type warnings
    By trillianjedi in forum C Programming
    Replies: 3
    Last Post: 06-11-2008, 04:16 PM
  2. The Interactive Animation - my first released C program
    By ulillillia in forum A Brief History of Cprogramming.com
    Replies: 48
    Last Post: 05-10-2007, 02:25 AM
  3. Recompiling C after Oracle 9i upgrade?
    By marcusg in forum C Programming
    Replies: 2
    Last Post: 06-02-2005, 05:55 AM
  4. Compiler "Warnings"
    By Jeremy G in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 04-24-2005, 01:09 PM
  5. oracle database connection
    By blue8173 in forum C Programming
    Replies: 1
    Last Post: 03-16-2004, 04:30 PM