Problem with shortcut when database is included in the project
I made a setup project and added a folder for desktop shortcut. My application includes database file as well. When I installed the application and ran the shortcut from desktop, it gave Desktop's path and said ABC.mdb not found.
How can I make it so that when user accesses the shortcut, it finds the 开发者_如何转开发database in the folder where user installed the application instead of finding it on desktop.
Thanks a lot.
Furqan
You need to specify an absolute path to the database.
Install the .mdb file to the same directory as the .exe, then have your .exe look for the .mdb in it's own directory.
精彩评论