Running Db Apps on different PCs 
Author Message
 Running Db Apps on different PCs

I am starting to get into database programming in VC++.  I am writing an
application that reads records form a database containing one table.  I Have
written the app and it works fine.  I am concerned about the step where I
have to register the OBDC database driver on the control panel.  When I
distribute this application, I do not want the user to have to perform that
step.  I would like to have everything done internally.  Can some one guide
me as to how this step can be eliminated?

Also, I am using a MS-Access database file.  I have also heard that you
cannot use .mdb databases on PCs that do not have MS-Access installed.  This
doesn't make a lot of sense, but I wanted to see if anyone had any more
information.  I need to be certain that the application will run on any
machine, without requiring that the user have any additional software
installed.

Any help would be appreciated.

Thanks,
John



Sat, 04 May 2002 03:00:00 GMT  
 Running Db Apps on different PCs
Not so easy this one as I always do the change for them.

You can off course create a .rgs registration file with the entries for them
and get
the entries into the registry using "regedit <filename>". Standard wise a
registry file normally has a
.rgs suffix.

Neatly there is a ODBC SDK function called SQLConfigDataSource which can be
called from within
a program to set up the datasource for you. Look in the MSDN library, a book
on ODBC programming
( esp. teach yourself ODBC programming in 21 days where I found it !! )

Quote:

>I am starting to get into database programming in VC++.  I am writing an
>application that reads records form a database containing one table.  I
Have
>written the app and it works fine.  I am concerned about the step where I
>have to register the OBDC database driver on the control panel.  When I
>distribute this application, I do not want the user to have to perform that
>step.  I would like to have everything done internally.  Can some one guide
>me as to how this step can be eliminated?

>Also, I am using a MS-Access database file.  I have also heard that you
>cannot use .mdb databases on PCs that do not have MS-Access installed.
This
>doesn't make a lot of sense, but I wanted to see if anyone had any more
>information.  I need to be certain that the application will run on any
>machine, without requiring that the user have any additional software
>installed.

>Any help would be appreciated.

>Thanks,
>John



Mon, 06 May 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Problems running DB App on WIN95

2. GetClientRect returns different values each time app is run

3. Same EVC + Different PC's = arm exe DIFFERENT file size (iPAQ)

4. Why different run on different systems??

5. Why different run on different system?

6. Why different run on different system?

7. running win32 apps and dos apps from a menu app

8. What's different between MFC App and MFC App as NTService

9. evc++ and building apps to run on iPAQ running PPC3.0

10. accessing to an ADO DB connections from different forms

11. complete db copy from different CDataSources?

12. Providers for different DB

 

 
Powered by phpBB® Forum Software