Thread: Setup/Installation programs

  1. #1
    Registered User
    Join Date
    Sep 2001
    Location
    England
    Posts
    121

    Question Setup/Installation programs

    HI, I am making a database application using MFC for a company, but the application requires an ODBC data source (an access file) to be setup in Control Panel. Ideally I would like this stage to be automatic during the installation of the program. I am about to learn how to use an installation program / api like iShield or Wise installer, can you tell me if these or orther installers have this feature please? Alternatively, is there any way I can use an access based database in a program without setting up the database as a data source, such as reading the access file from the same directory as the program?

    Thanks

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    223

    database location at runtime

    Can you use dao. I know how to do it with dao but not with ODBC. With dao you must include afxdao.h

    In dao you just do the following


    CDaoDatabase db;

    db.Open( strPathAndFilename );

    CDaoMyRecordset rs( &db );

    now your recordset has the right path.....


    Perhaps there may be something similar in odbc.....
    zMan

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Recommend upgrade path for C programs
    By emanresu in forum C Programming
    Replies: 3
    Last Post: 11-22-2007, 07:32 AM
  2. Reroute where programs write to
    By willc0de4food in forum C Programming
    Replies: 7
    Last Post: 09-21-2005, 04:48 PM
  3. Way to get the current open programs displayed?
    By CPPguy1111 in forum C++ Programming
    Replies: 6
    Last Post: 06-22-2005, 12:24 AM
  4. POSIX/DOS programs?
    By nickname_changed in forum C++ Programming
    Replies: 1
    Last Post: 02-28-2003, 05:42 AM
  5. executing c++ programs on the web
    By gulti01 in forum C++ Programming
    Replies: 4
    Last Post: 08-12-2002, 03:12 AM